Classes | |
class | OSConditionBase |
This class implement an os-dependant condition. More... | |
class | OSConditionPthread |
This class implement an os-dependant condition. More... | |
class | OSMutexBase |
Implements an OS specific mutex This mutex class is not supposed to be reentrant, but it is supposed to have an trylock() feature at OS level. More... | |
class | OSMutexPthread |
class | OSSpecificDataBase |
Wrapper class for thread specific data access (tsd/tls). More... | |
class | OSSpecificDataPthread |
Wrapper class for pthread specific data access (tsd/tls). More... | |
class | OSThreadBase |
Thread OS layer abstraction This class can be rewritten in other header files to implement different os specific threading system. More... | |
class | OSThreadPthread |
Wraps Posix threads. More... | |
struct | tag_ThreadAndReturn |
Utility structure to pass around a thread object along with its return. More... | |
Typedefs | |
typedef Wefts::tag_ThreadAndReturn | Wefts::ThreadAndReturn |
Utility structure to pass around a thread object along with its return. | |
typedef OSSpecificDataPthread | Wefts::OSSpecificData |
Function to execute the thread RUN procedure guarded by OS cleanup. | |
typedef OSThreadPthread | Wefts::OSThread |
typedef OSConditionPthread | Wefts::OSCondition |
typedef OSMutexPthread | Wefts::OSMutex |
Enumerations | |
enum | Wefts::OSPriority { Wefts::PrioRealTime = 0, Wefts::PrioHigh = 1, Wefts::PrioNormal = 2, Wefts::PrioLow = 3, Wefts::PrioIdle = 4 } |
Portable priority concept. More... | |
Functions | |
std::string | Wefts::OSErrorDescription (int osCode) |
Function to report OS specific error. | |
bool | Wefts::OSSleep (long nSeconds, long nNanoseconds) |
Function to provide a wefts-interruptable wait. | |
void | Wefts::wefts_pthread_cond_guard (void *param) |
This function is used internally by pthread module to safely guard the condition on async cancelation. | |
void | Wefts::wefts_pthread_cond_reset (void *param) |
|
|
|
|
|
Function to execute the thread RUN procedure guarded by OS cleanup.
|
|
|
|
Utility structure to pass around a thread object along with its return. As the only function able to know if a thread is detached, and that then can rightfully delete the thread object, is the cancelation cleanup handler, it is also the only function that is able to set the thread run return value member if the thread is NOT detached. To let the cleanup handler have this value, this structure holds a pointer to the thread and a pointer to the run return value (or zero, if the run() method had not a chance to return). OSThreadBase::osRun() is responsible to fill correctly this value and let the cleanup routine have it. |
|
|
Function to report OS specific error.
|
|
Function to provide a wefts-interruptable wait.
|
|
This function is used internally by pthread module to safely guard the condition on async cancelation.
|
|
|