SkePU(integratedwithStarPU)  0.8.1
 All Classes Namespaces Files Functions Enumerations Friends Macros Groups Pages
Public Member Functions | List of all members
skepu::Threads Class Reference

#include <thread_management.h>

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
threadA valid thread ID.
void skepu::Threads::fork ( ThreadFunc  func,
ThreadFuncArg *  arg,
ThreadID *  thread 
)
inline

Creates a new thread running a specified function.

Parameters
funcPointer to function that the thread will run.
argPointer to an argument struct that will be sent to the new thread.
threadPointer 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
threadA valid thread ID.

The documentation for this class was generated from the following file: