|
ACE 7.0.7
|
RWLock Invariants. More...
#include <Token_Invariants.h>
Public Member Functions | |
| ACE_RWLock_Invariants ()=default | |
| Default construction. More... | |
| int | writer_acquired () |
| int | reader_acquired () |
| void | releasing () |
| Updates internal database. More... | |
| ACE_RWLock_Invariants (const ACE_RWLock_Invariants &rhs)=default | |
| Copy construction. More... | |
| void | operator= (const ACE_RWLock_Invariants &rhs)=default |
| Copy. More... | |
| void | dump () const |
| Dump the state of the class. More... | |
Private Attributes | |
| int | writers_ {} |
| Number of owning writers. More... | |
| int | readers_ {} |
| Number of owning readers. More... | |
RWLock Invariants.
Preserve the following invariants:
|
default |
Default construction.
|
default |
Copy construction.
| void ACE_RWLock_Invariants::dump | ( | void | ) | const |
Dump the state of the class.
|
default |
Copy.
| int ACE_RWLock_Invariants::reader_acquired | ( | void | ) |
Returns 1 on success, 0 when an invariant has been violated and -1 on error.
| void ACE_RWLock_Invariants::releasing | ( | void | ) |
Updates internal database.
| int ACE_RWLock_Invariants::writer_acquired | ( | void | ) |
Returns 1 on success, 0 when an invariant has been violated and -1 on error.
|
private |
Number of owning readers.
|
private |
Number of owning writers.