#include <thread.h>
static void addThread |
( |
Thread * |
thread | ) |
|
|
inlinestatic |
Each thread should add itself to the thread pool the first time it runs.
static bool compare |
( |
U32 |
threadId_1, |
|
|
U32 |
threadId_2 |
|
) |
| |
|
static |
Returns true if the 2 thread ids represent the same thread. Some thread APIs return an opaque object as a thread id, so the == operator cannot reliably compare thread ids.
static Thread* getCurrentThread |
( |
| ) |
|
|
inlinestatic |
static U32 getCurrentThreadId |
( |
| ) |
|
|
static |
Returns the platform specific thread id of the calling thread. Some platforms do not guarantee that this ID stays the same over the life of the thread, so use ThreadManager::compare() to compare thread ids.
static Thread* getThreadById |
( |
U32 |
threadid | ) |
|
|
inlinestatic |
Searches the pool of known threads for a thread whose id is equivalent to the given threadid. Compares thread ids with ThreadManager::compare().
bool isCurrentThread |
( |
U32 |
threadId | ) |
|
|
inlinestatic |
Returns true if threadId is the same as the calling thread's id.
static void removeThread |
( |
Thread * |
thread | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file:
- platform/threads/thread.h