#include <Token_Invariants.h>
Public Methods | |
| ACE_RWLock_Invariants (void) | |
| Default construction. More... | |
| int | writer_acquired (void) |
| Returns 1 on success, 0 when an invariant has been violated and -1 on error. More... | |
| int | reader_acquired (void) |
| Returns 1 on success, 0 when an invariant has been violated and -1 on error. More... | |
| void | releasing (void) |
| Updates internal database. More... | |
| ACE_RWLock_Invariants (const ACE_RWLock_Invariants &rhs) | |
| Copy construction. More... | |
| void | operator= (const ACE_RWLock_Invariants &rhs) |
| Copy. More... | |
| void | dump (void) const |
| Dump the state of the class. More... | |
Private Attributes | |
| int | writers_ |
| Number of owning writers. More... | |
| int | readers_ |
| Number of owning readers. More... | |
Preserve the following invariants:
Definition at line 79 of file Token_Invariants.h.
|
|
Default construction.
Definition at line 274 of file Token_Invariants.cpp.
|
|
|
Copy construction.
Definition at line 321 of file Token_Invariants.cpp.
|
|
|
Dump the state of the class.
Definition at line 335 of file Token_Invariants.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, LM_DEBUG, readers_, and writers_.
00336 {
00337 ACE_TRACE ("ACE_RWLock_Invariants::dump");
00338 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00339 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("writers_ = %d\n"),
00340 "readers_ = %d\n",
00341 writers_, readers_));
00342 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00343 }
|
|
|
Copy.
Definition at line 328 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 298 of file Token_Invariants.cpp. References readers_, and writers_. Referenced by ACE_Token_Invariant_Manager::reader_acquired.
|
|
|
Updates internal database.
Definition at line 313 of file Token_Invariants.cpp. References readers_, and writers_. 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 281 of file Token_Invariants.cpp. References readers_, and writers_. Referenced by ACE_Token_Invariant_Manager::writer_acquired.
|
|
|
Number of owning readers.
Definition at line 112 of file Token_Invariants.h. Referenced by dump, operator=, reader_acquired, releasing, and writer_acquired. |
|
|
Number of owning writers.
Definition at line 109 of file Token_Invariants.h. Referenced by dump, operator=, reader_acquired, releasing, and writer_acquired. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002