#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/system/al_Thread.hpp>
|
static void * | current () |
| Return pointer to current OS thread object. More...
|
|
Thread
Definition at line 78 of file al_Thread.hpp.
◆ Thread() [1/2]
- Parameters
-
[in] | func | thread function object |
◆ Thread() [2/2]
al::Thread::Thread |
( |
void *(*)(void *userData) |
cFunc, |
|
|
void * |
userData |
|
) |
| |
- Parameters
-
[in] | cFunc | thread C function |
[in] | userData | user data passed to C function |
◆ current()
static void* al::Thread::current |
( |
| ) |
|
|
static |
Return pointer to current OS thread object.
E.g., if using pthreads internally, will return the pthread_t.
◆ join()
bool al::Thread::join |
( |
| ) |
|
Block the calling routine indefinitely until the thread terminates.
This function suspends execution of the calling routine until the thread has terminated. It will return immediately if the thread was already terminated. A true return value signifies successful termination. A false return value indicates a problem with the wait call.
◆ priority()
Thread& al::Thread::priority |
( |
int |
v | ) |
|
Set thread priority.
- Parameters
-
[in] | v | priority of thread in [0, 99]. A value greater than 0 makes the thread "real-time". |
The documentation for this class was generated from the following file: