- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FUtils/FUThread.h

Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2005-2007 Feeling Software Inc.
    00003     Portions of the code are:
    00004     Copyright (C) 2005-2007 Sony Computer Entertainment America
    00005
    00006     MIT License: http://www.opensource.org/licenses/mit-license.php
    00007 */
    00008
    00014 #ifndef _FU_THREAD_H_
    00015 #define _FU_THREAD_H_
    00016
    00024 class FCOLLADA_EXPORT FUThread
    00025 {
    00026 private:
    00027 #ifdef WIN32
    00028     HANDLE thread;
    00029 #else
    00030 #warning "Threads not yet implemented for non Windows."
    00031 #endif
    00032
    00033 private:
    00035     FUThread();
    00036
    00037 public:
    00039     virtual ~FUThread();
    00040
    00046 #ifdef WIN32
    00047     static FUThread* CreateFUThread(LPTHREAD_START_ROUTINE lpStartAddress, void* lpParameter);
    00048 #else
    00049     static FUThread* CreateFUThread(); // TODO: implement and merge with WIN32, removing the LPTHREAD_START_ROUTINE
    00050 #endif
    00051
    00054     static void ExitFUThread(FUThread* thread);
    00055
    00057     static void YieldCurrentThread();
    00058
    00061     static void SleepCurrentThread(unsigned long milliseconds);
    00062 };
    00063
    00064 #endif // _FU_THREAD_H_