#include <thread_management.h>
List of all members.
Public Member Functions |
| void | fork (ThreadFunc func, ThreadFuncArg *arg, ThreadID *thread) |
| void | join (ThreadID thread) |
| void | cancel (ThreadID thread) |
Detailed Description
- Version:
- 0.5
A wrapper class for a few pthread commands. Used by CUDA multi-GPU functions. Only supports Pthreads.
Member Function Documentation
| void skepu::Threads::cancel |
( |
ThreadID |
thread |
) |
[inline] |
Cancels the specified thread.
- Parameters:
-
| thread | A valid thread ID. |
| 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:
-
| thread | A valid thread ID. |
The documentation for this class was generated from the following file: