#include <threadengine_pthread.h>
|
static DWORD WINAPI | Entry (void *parameter) |
|
The ThreadEngine class has the responsibility of initialising Thread derived classes. It does this by creating operating system level threads which are then associated with the class transparently. This allows Thread classes to be derived without needing to know how the OS implements threads. You should ensure that any sections of code that use threads are threadsafe and do not interact with any other parts of the code which are NOT known threadsafe! If you really MUST access non-threadsafe code from a Thread, use the Mutex class to wrap access to the code carefully.
◆ ThreadEngine()
ThreadEngine::ThreadEngine |
( |
| ) |
|
◆ ~ThreadEngine()
ThreadEngine::~ThreadEngine |
( |
| ) |
|
|
virtual |
◆ GetName() [1/2]
const std::string ThreadEngine::GetName |
( |
| ) |
|
|
inline |
Returns the thread engine's name for display purposes
- Returns
- The thread engine name
◆ GetName() [2/2]
const std::string ThreadEngine::GetName |
( |
| ) |
|
|
inline |
Returns the thread engine's name for display purposes
- Returns
- The thread engine name
◆ Start() [1/2]
void ThreadEngine::Start |
( |
Thread * |
thread_to_init | ) |
|
Create a new thread. This takes an already allocated Thread* pointer and initializes it to use this threading engine. On failure, this function may throw a CoreException.
- Parameters
-
thread_to_init | Pointer to a newly allocated Thread derived object. |
◆ Start() [2/2]
void ThreadEngine::Start |
( |
Thread * |
thread_to_init | ) |
|
Create a new thread. This takes an already allocated Thread* pointer and initializes it to use this threading engine. On failure, this function may throw a CoreException.
- Parameters
-
thread_to_init | Pointer to a newly allocated Thread derived object. |
The documentation for this class was generated from the following files: