27 #ifndef CPP_PTHREADS_ENUMS_H_
28 #define CPP_PTHREADS_ENUMS_H_
97 template<
typename Enum>
102 template<
typename Enum>
104 return getEnumMap<Enum>()[val];
109 template<
typename Enum>
Scope
Signifies process or system scheduling contention scope.
thread must be join()ed by another thread for memory to be freed
resource is shared by all processes who have access to the memory containing the resource handle ...
thread is started in a detached state, when thread terminates, memory is automatically freed ...
DetachState
controls whether a thread is created in a detached state, meaning that the thread will destroy itself...
Enum getEnum(int val)
returns the pthread integer enumerator that corresponds to the specified value
int * getEnumMap()
returns pointer to a map from enums to pthread enums (ints)
Protocol
Which progocol is used for priority.
InheritSched
determines whether a thread inherits it's scheduling policy from the creating thread or if it uses th...
PShared
indicates whether or not a resource is shared across processes
SchedPolicy
if multiple threads are waiting on the same mutex, the Scheduling Policy determines the order in whic...
int mapEnum(Enum val)
returns the pthread integer enumerator that corresponds to the specified value
thread inherits scheduling policy from creating thread
thread's scheduling policy is explicitly set in the Attr<Thread> object
resource is private to the creating process