NAME

ACE_Remote_WLock - Proxy for acquiring, renewing, and releasing a distributed writers lock.

SYNOPSIS


#include <ACE/Remote_Tokens.h>


class ACE_Remote_WLock : public ACE_Remote_Token_Proxy
{
  public:
    ACE_Remote_WLock (void);
    ACE_Remote_WLock (
        const char *token_name,
        int ignore_deadlock = 0,
        int debug = 0
        );
    ACE_Remote_WLock (const ACE_Remote_WLock &mutex);
    void dump (void) const;
    virtual int type (void) const;
    virtual ACE_Token_Proxy *clone (void) const;
  protected:
    virtual ACE_Tokens *create_token (const char *name);
};

DESCRIPTION

Shields applications from details of interacting with the ACE_Token_Server. The token_name_ is just the string that the Token Server uses to identify the token. The client_id_ (also used by the Token Server,) identifies the owner of the token and is used for deadlock detection.

PUBLIC MEMBERS

ACE_Remote_WLock (void);
ACE_Remote_WLock (
    const char *token_name,
    int ignore_deadlock = 0,
    int debug = 0
    );
ACE_Remote_WLock (const ACE_Remote_WLock &mutex);
void dump (void) const;
virtual int type (void) const;
virtual ACE_Token_Proxy *clone (void) const;

PROTECTED MEMBERS

virtual ACE_Tokens *create_token (const char *name);

AUTHOR

Douglas C. Schmidt (schmidt@cs.wustl.edu) and Tim Harrison (harrison@cs.wustl.edu)

LIBRARY

ACE