ACE_RWLock_Invariants(3)

ACE_RWLock_Invariants3

Rwlock invariants

Usage

#include <ace/Token_Invariants.h>
class ACE_RWLock_Invariants
{
  public:
    ACE_RWLock_Invariants (void);
    int writer_acquired (void);
    int reader_acquired (void);
    void releasing (void);
    ACE_RWLock_Invariants (const ACE_RWLock_Invariants &rhs);
    void operator= (const ACE_RWLock_Invariants &rhs);
    void dump (void) const;
  private:
    int writers_;
    int readers_;
};

Overview

Allows applications to test that invariants are always satisfied. Can test mutexes and readers/writer locks. Does not test recursive acquisition.

Map_Manager operations.

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.

Invariants

1. Only one writer at a time. 2. If there is an owning writer, there are no owning readers.

Library

ace

Author

Tim Harrison ([email protected])

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.