TAO_RTEvent
2.3.3
|
Parse thread flags from string to a long. More...
#include <EC_Thread_Flags.h>
Classes | |
struct | Supported_Flag |
Public Member Functions | |
TAO_EC_Thread_Flags () | |
TAO_EC_Thread_Flags (const char *symbolic_flags) | |
See operator=() More... | |
~TAO_EC_Thread_Flags () | |
const TAO_EC_Thread_Flags & | operator= (const char *symbolic_flags) |
Assign a new set of symbolic flags, setting flags, scope, and sched as possible. More... | |
long | flags () const |
Returns numeric equivalent of the thread flags suitable for passing to ACE_Task::activate. More... | |
long | scope () const |
Returns value of THR_SCOPE_* used, or zero if unknown. More... | |
long | sched () const |
Returns value of THR_SCHED_* used, or zero if unknown. More... | |
operator long () const | |
Synonym for flags(), i.e., syntactic sugar. More... | |
long | default_priority () const |
Return an acceptable default priority for the scheduler returned by sched(). More... | |
Static Public Attributes | |
static Supported_Flag | supported_flags_ [] |
Protected Member Functions | |
void | parse_symbols (const char *syms) |
Value of THR_SCHED_*. More... | |
Protected Attributes | |
long | flags_ |
long | scope_ |
Value of all flags OR'd together. More... | |
long | sched_ |
Value of THR_SCOPE_*. More... | |
Parse thread flags from string to a long.
Encapsulate flags used for creating threads with ACE_OS::thr_create and ACE_Task::activate.
This should really be part of ACE or ACE_OS, and maybe someday it will, but right now it's not.
|
inline |
|
inline |
See operator=()
TAO_EC_Thread_Flags::~TAO_EC_Thread_Flags | ( | ) |
long TAO_EC_Thread_Flags::default_priority | ( | ) | const |
Return an acceptable default priority for the scheduler returned by sched().
|
inline |
Returns numeric equivalent of the thread flags suitable for passing to ACE_Task::activate.
|
inline |
Synonym for flags(), i.e., syntactic sugar.
|
inline |
Assign a new set of symbolic flags, setting flags, scope, and sched as possible.
The flags can be symbolic, separated by the vertical bar ('|'). In case a platform supports a creation flag not available symbolically, the user can specify a numeric value any place a symbol could be used.
|
protected |
Value of THR_SCHED_*.
|
inline |
Returns value of THR_SCHED_* used, or zero if unknown.
|
inline |
Returns value of THR_SCOPE_* used, or zero if unknown.
|
protected |
|
protected |
Value of THR_SCOPE_*.
|
protected |
Value of all flags OR'd together.
|
static |