---
name: "ACE_Proactor_Handle_Timeout_Upcall"
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_Proactor_Handle_Timeout_Upcall"
---

# ACE\_Proactor\_Handle\_Timeout\_Upcall(3)

Functor for ACE\_Timer\_Queue.

## NAME

ACE\_Proactor\_Handle\_Timeout\_Upcall -  Functor for ACE\_Timer\_Queue.

## SYNOPSIS

```
#include <ace/Proactor.h>
class ACE_Proactor_Handle_Timeout_Upcall
{
  public:
    friend class ACE_Proactor;
    ACE_Proactor_Handle_Timeout_Upcall (void);
    int timeout (
        TIMER_QUEUE &timer_queue,
        ACE_Handler *handler,
        const void *arg,
        const ACE_Time_Value &cur_time
        );
    int cancellation (TIMER_QUEUE &timer_queue, ACE_Handler *handler);
    int deletion (
        TIMER_QUEUE &timer_queue,
        ACE_Handler *handler,
        const void *arg
        );
  protected:
    int proactor (ACE_Proactor &proactor);
    ACE_Proactor *proactor_;
};
```

## DESCRIPTION

This class implements the functor required by the Timer Queue to call handle\_timeout on ACE\_Handlers.

## PUBLIC MEMBERS

```
friend class ACE_Proactor;
```

The main Proactor class has special permissions.

```
ACE_Proactor_Handle_Timeout_Upcall (void);
```

Constructor.

```
int timeout (
    TIMER_QUEUE &timer_queue,
    ACE_Handler *handler,
    const void *arg,
    const ACE_Time_Value &cur_time
    );
```

This method is called when the timer expires.

```
int cancellation (TIMER_QUEUE &timer_queue, ACE_Handler *handler);
```

This method is called when the timer is canceled.

```
int deletion (
    TIMER_QUEUE &timer_queue,
    ACE_Handler *handler,
    const void *arg
    );
```

This method is called when the timer queue is destroyed and the timer is still contained in it.

## PROTECTED MEMBERS

```
int proactor (ACE_Proactor &proactor);
```

Set the proactor. This will fail, if one is already set!

```
ACE_Proactor *proactor_;
```

Handle to the proactor. This is needed for posting a timer result to the Proactor's completion queue.

## AUTHOR

Irfan Pyarali irfan@cs.wustl.edu, Tim Harrison harrison@cs.wustl.edu and Alexander Babu Arulanthu alex@cs.wustl.edu

## LIBRARY

ace
