ACE_Test_and_Set< ACE_LOCK, TYPE > Class Template ReferenceImplements the classic ``test and set'' operation. More...
Inheritance diagram for ACE_Test_and_Set< ACE_LOCK, TYPE >:
Collaboration diagram for ACE_Test_and_Set< ACE_LOCK, TYPE >:
Detailed Descriptiontemplate<class ACE_LOCK, class TYPE>
Implements the classic ``test and set'' operation.
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Test_and_Set< ACE_LOCK, TYPE >::ACE_Test_and_Set | ( | TYPE | initial_value = 0 |
) | [inline] |
TYPE ACE_Test_and_Set< ACE_LOCK, TYPE >::is_set | ( | void | ) | const [inline] |
Returns true if we are set, else false.
TYPE ACE_Test_and_Set< ACE_LOCK, TYPE >::set | ( | TYPE | status | ) | [inline] |
Sets the <is_set_> status, returning the original value of <is_set_>.
int ACE_Test_and_Set< ACE_LOCK, TYPE >::handle_signal | ( | int | signum, | |
siginfo_t * | = 0 , |
|||
ucontext_t * | = 0 | |||
) | [inline, virtual] |
Called when object is signaled by OS (either via UNIX signals or when a Win32 object becomes signaled).
Reimplemented from ACE_Event_Handler.
TYPE ACE_Test_and_Set< ACE_LOCK, TYPE >::is_set_ [private] |
Keeps track of our state.
ACE_LOCK ACE_Test_and_Set< ACE_LOCK, TYPE >::lock_ [private] |
Protect the state from race conditions.