#include <Token_Invariants.h>
Public Member Functions | |
ACE_RWLock_Invariants (void) | |
Default construction. | |
int | writer_acquired (void) |
int | reader_acquired (void) |
void | releasing (void) |
Updates internal database. | |
ACE_RWLock_Invariants (const ACE_RWLock_Invariants &rhs) | |
Copy construction. | |
void | operator= (const ACE_RWLock_Invariants &rhs) |
Copy. | |
void | dump (void) const |
Dump the state of the class. | |
Private Attributes | |
int | writers_ |
Number of owning writers. | |
int | readers_ |
Number of owning readers. |
Preserve the following invariants:
Definition at line 82 of file Token_Invariants.h.
|
Default construction.
Definition at line 281 of file Token_Invariants.cpp.
|
|
Copy construction.
Definition at line 328 of file Token_Invariants.cpp.
|
|
Dump the state of the class.
Definition at line 342 of file Token_Invariants.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, and LM_DEBUG.
00343 { 00344 #if defined (ACE_HAS_DUMP) 00345 ACE_TRACE ("ACE_RWLock_Invariants::dump"); 00346 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 00347 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("writers_ = %d readers_ = %d\n"), 00348 writers_, readers_)); 00349 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 00350 #endif /* ACE_HAS_DUMP */ 00351 } |
|
Copy.
Definition at line 335 of file Token_Invariants.cpp. References readers_, and writers_.
|
|
Returns 1 on success, 0 when an invariant has been violated and -1 on error. Definition at line 305 of file Token_Invariants.cpp. Referenced by ACE_Token_Invariant_Manager::reader_acquired().
|
|
Updates internal database.
Definition at line 320 of file Token_Invariants.cpp. Referenced by ACE_Token_Invariant_Manager::rwlock_releasing().
|
|
Returns 1 on success, 0 when an invariant has been violated and -1 on error. Definition at line 288 of file Token_Invariants.cpp. Referenced by ACE_Token_Invariant_Manager::writer_acquired().
|
|
Number of owning readers.
Definition at line 115 of file Token_Invariants.h. Referenced by operator=(). |
|
Number of owning writers.
Definition at line 112 of file Token_Invariants.h. Referenced by operator=(). |