logog
logger optimized for games
|
#include <thread.hpp>
Public Types | |
typedef void *(* | ThreadStartLocationType) (void *) |
Public Member Functions | |
Thread (ThreadStartLocationType fnThreadStart, void *pvParams) | |
int | Start () |
Static Public Member Functions | |
static int | WaitFor (const Thread &thread) |
static LOGOG_THREAD | GetCurrent () |
A thread abstraction. Requires definition of macros to describe how to create, start, and wait for threads to terminate.
typedef void*(* ThreadStartLocationType) (void *) |
A type describing the entry point of a function.
|
inline |
Creating a new thread requires the starting location as well as a single void pointer to the argument to a function.
|
inlinestatic |
Returns a LOGOG_THREAD representing the calling process.
|
inline |
Cause the created thread to commence execution asynchronously.
|
inlinestatic |
Causes the current thread to wait for completion of the provided thread.
thread | The thread object to wait for |