NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Thread Class Reference

#include <Thread.hpp>

Public Types

enum  { Priority_Min = -15, Priority_Normal = 0, Priority_Max = 15 }
 
typedef void(* ThreadFunc )(void *param)
 
typedef void(* DeinitFunc )(void *data)
 

Public Member Functions

 Thread (void)
 
 ~Thread (void)
 
void start (ThreadFunc func, void *param)
 
int getPriority (void)
 
void setPriority (int priority)
 
bool isAlive (void)
 
void join (void)
 
voidgetUserData (const String &id)
 
void setUserData (const String &id, void *data, DeinitFunc deinitFunc=NULL)
 

Static Public Member Functions

static ThreadgetCurrent (void)
 
static ThreadgetMain (void)
 
static bool isMain (void)
 
static U32 getID (void)
 
static void sleep (int millis)
 
static void yield (void)
 
static void suspendAll (void)
 

Detailed Description

Definition at line 109 of file Thread.hpp.

Member Typedef Documentation

typedef void(* FW::Thread::DeinitFunc)(void *data)

Definition at line 113 of file Thread.hpp.

typedef void(* FW::Thread::ThreadFunc)(void *param)

Definition at line 112 of file Thread.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator
Priority_Min 
Priority_Normal 
Priority_Max 

Definition at line 115 of file Thread.hpp.

Constructor & Destructor Documentation

Thread::Thread ( void  )

Definition at line 235 of file Thread.cpp.

Thread::~Thread ( void  )

Definition at line 245 of file Thread.cpp.

Member Function Documentation

Thread * Thread::getCurrent ( void  )
static

Definition at line 291 of file Thread.cpp.

U32 Thread::getID ( void  )
static

Definition at line 324 of file Thread.cpp.

Thread * Thread::getMain ( void  )
static

Definition at line 308 of file Thread.cpp.

int Thread::getPriority ( void  )

Definition at line 345 of file Thread.cpp.

void * Thread::getUserData ( const String id)

Definition at line 407 of file Thread.cpp.

bool Thread::isAlive ( void  )

Definition at line 370 of file Thread.cpp.

bool Thread::isMain ( void  )
static

Definition at line 316 of file Thread.cpp.

void Thread::join ( void  )

Definition at line 393 of file Thread.cpp.

void Thread::setPriority ( int  priority)

Definition at line 359 of file Thread.cpp.

void Thread::setUserData ( const String id,
void data,
DeinitFunc  deinitFunc = NULL 
)

Definition at line 418 of file Thread.cpp.

void Thread::sleep ( int  millis)
static

Definition at line 331 of file Thread.cpp.

void Thread::start ( ThreadFunc  func,
void param 
)

Definition at line 271 of file Thread.cpp.

void Thread::suspendAll ( void  )
static

Definition at line 457 of file Thread.cpp.

void Thread::yield ( void  )
static

Definition at line 338 of file Thread.cpp.


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