VCF::ThreadManager Class Reference
#include <ThreadManager.h>
List of all members.
Member Function Documentation
| static void VCF::ThreadManager::addThread |
( |
Thread * |
thread |
) |
[static] |
|
| static void VCF::ThreadManager::create |
( |
|
) |
[static] |
|
|
|
Convenience function for retrieving the current thread's run loop.
Equivalent to calling
- Returns:
- RunLoop - the run loop instance of the current thread.
- See also:
- Thread::getRunLoop
|
| static Thread* VCF::ThreadManager::getCurrentThread |
( |
|
) |
[static] |
|
|
|
Returns the current Thread object associated with the calling thread.
Depending on the platform, this gets the calling thread's ID and looks up the associated Thread object that is registered with the ThreadManager.
For Win32 - see GetCurrentThreadId() For Unix/Posix systems - see pthread_self For Mac OSX - see MPCurrentTaskID |
| void VCF::ThreadManager::internal_addThread |
( |
Thread * |
thread |
) |
[protected] |
|
| void VCF::ThreadManager::internal_removeThread |
( |
Thread * |
thread |
) |
[protected] |
|
| static void VCF::ThreadManager::removeThread |
( |
Thread * |
thread |
) |
[static] |
|
| static void VCF::ThreadManager::terminate |
( |
|
) |
[static] |
|
|
|
Allows you to wait on 1 or more wait objects till one of them becomes signaled.
The duration of the wait is specified in milliseconds.
When the function returns, the signaledObjects will contain a list of signaled objects
- Parameters:
-
| std::vector<Waitable*> | a vector of Waitable* objects to |
| std::vector<Waitable*> | |
| uint32 | the duration to wait before returning from the call. If the duration is exceeded the return value will be Waitable::wrTimedOut |
- Returns:
- Waitable::WaitResult
|
Member Data Documentation
The documentation for this class was generated from the following file: