---
name: "ACE_Remote_Mutex"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Remote_Mutex"
---

# ACE\_Remote\_Mutex(3)

Proxy for acquiring, renewing, and releasing a distributed mutex.

## NAME

ACE\_Remote\_Mutex -  Proxy for acquiring, renewing, and releasing a distributed mutex.

## SYNOPSIS

```
#include <ACE/Remote_Tokens.h>
class ACE_Remote_Mutex : public ACE_Remote_Token_Proxy
{
  public:
    ACE_Remote_Mutex (void);
    ACE_Remote_Mutex (
        const ASYS_TCHAR *token_name,
        int ignore_deadlock = 0,
        int debug = 0
        );
    void dump (void) const;
    virtual ACE_Token_Proxy *clone (void) const;
  protected:
    virtual ACE_Tokens *create_token (const ASYS_TCHAR *name);
};
```

## DESCRIPTION

This is the remote equivalent to ACE\_Local\_Mutex.  The Remote\_Mutex class offers methods for acquiring, renewing, and releasing a distributed synchronization mutex.  Similar to ACE\_Local\_Mutex, ACE\_Remote\_Token\_Proxy offers recursive acquisition, FIFO waiter ordering, and deadlock detection.  It depends on the Token Server for its distributed synchronization semantics.

## PUBLIC MEMBERS

```
ACE_Remote_Mutex (void);
```

Null creation.  Remote\_Token\_Proxy::open must be called.

```
ACE_Remote_Mutex (
    const ASYS_TCHAR *token_name,
    int ignore_deadlock = 0,
    int debug = 0
    );
```

Calls Remote\_Token\_Proxy::open for you.

```
void dump (void) const;
```

Dump the state of the class.

```
virtual ACE_Token_Proxy *clone (void) const;
```

Return deep copy.

## PROTECTED MEMBERS

```
virtual ACE_Tokens *create_token (const ASYS_TCHAR *name);
```

Make the correct type of ACE\_Tokens.  This is called by the Token Manager.

## AUTHOR

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

## LIBRARY

ACE
