#include <thread_management.h>
|
void | fork (ThreadFunc func, ThreadFuncArg *arg, ThreadID *thread) |
|
void | join (ThreadID thread) |
|
void | cancel (ThreadID thread) |
|
- Version
- 0.5
A wrapper class for a few pthread commands. Used by CUDA multi-GPU functions. Only supports Pthreads.
void skepu::Threads::cancel |
( |
ThreadID |
thread | ) |
|
|
inline |
Cancels the specified thread.
- Parameters
-
void skepu::Threads::fork |
( |
ThreadFunc |
func, |
|
|
ThreadFuncArg * |
arg, |
|
|
ThreadID * |
thread |
|
) |
| |
|
inline |
Creates a new thread running a specified function.
- Parameters
-
func | Pointer to function that the thread will run. |
arg | Pointer to an argument struct that will be sent to the new thread. |
thread | Pointer to a thread ID that will identify the new thread. Will be set by the function. |
void skepu::Threads::join |
( |
ThreadID |
thread | ) |
|
|
inline |
Joins the thread with the main thread, stalling until thread has finished.
- Parameters
-
The documentation for this class was generated from the following file: