---
name: "ACE_Token_Proxy_Queue"
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_Token_Proxy_Queue"
---

# ACE\_Token\_Proxy\_Queue(3)

Token waiter list.

## NAME

ACE\_Token\_Proxy\_Queue -  Token waiter list.

## SYNOPSIS

```
#include <ace/Local_Tokens.h>
class ACE_Token_Proxy_Queue
{
  public:
    friend class ACE_TPQ_Iterator;
    ACE_Token_Proxy_Queue (void);
    ~ACE_Token_Proxy_Queue (void);
    void enqueue (ACE_TPQ_Entry* new_entry, int position);
    const ACE_TPQ_Entry* head (void);
    void dequeue (void);
    void remove (const ACE_TPQ_Entry *remove_me);
    int size (void);
    void dump (void) const;
  protected:
    ACE_TPQ_Entry *head_;
    ACE_TPQ_Entry *tail_;
    int size_;
};
```

## DESCRIPTION

This file contains definitions for the following classes:

public:\
   7\. ACE\_Token\_Proxy\
   8\. ACE\_Null\_Token : public ACE\_Token\_Proxy\
   9\. ACE\_Local\_Mutex : public ACE\_Token\_Proxy\
   \*. ACE\_Local\_RLock : public ACE\_Local\_Mutex\
   &. ACE\_Local\_WLock : public ACE\_Local\_Mutex private:\
   1\. ACE\_TOKEN\_CONST\
   3\. ACE\_TPQ\_Entry\
   b. ACE\_TSS\_TPQ\_Entry\
   c. ACE\_TPQ\_Iterator\
   4\. ACE\_Token\_Proxy\_Queue\
   5\. ACE\_Tokens\
   6\. ACE\_Mutex\_Token : public ACE\_Tokens\
   12\. ACE\_RW\_Token : public ACE\_Tokens\
   a. ACE\_Token\_Name

 Note that the locking classes defined in this file are \*not\*\
  intended to be used as general-purpose synchronization\
  mechanisms, such as mutexes or semaphores.  Instead, you should\
  use the ACE\_Recursive\_Thread\_Mutex, ACE\_Thread\_Mutex,\
  ACE\_Thread\_Semaphore, etc., that are defined in\
  $ACE\_ROOT/ace/Synch.h and $ACE\_ROOT/ace/Synch\_T.h or the\
  ACE\_Token that's defined in $ACE\_ROOT/ace/Token.h.

## PUBLIC MEMBERS

```
friend class ACE_TPQ_Iterator;
```

```
ACE_Token_Proxy_Queue (void);
```

Construction.

```
~ACE_Token_Proxy_Queue (void);
```

Destructor

```
void enqueue (ACE_TPQ_Entry* new_entry, int position);
```

Enqueue a proxy, nesting level, client\_id, and a magic cookie at the given position in the list.  If the position is -1, we enqueue at the end of the list (I think).

```
const ACE_TPQ_Entry* head (void);
```

Top of the queue.

```
void dequeue (void);
```

Remove the top waiter.

```
void remove (const ACE_TPQ_Entry *remove_me);
```

Remove the waiter whose proxy ref matches remove\_me.

```
int size (void);
```

The number of waiters.

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

Dump the state of the class.

## PROTECTED MEMBERS

```
ACE_TPQ_Entry *head_;
```

Head.

```
ACE_TPQ_Entry *tail_;
```

Tail.

```
int size_;
```

Size.

## AUTHOR

Karl-Heinz Dorn kdorn@erlh.siemens.de, Douglas C. Schmidt schmidt@cs.wustl.edu, and Tim Harrison harrison@cs.wustl.edu

## LIBRARY

ace
