---
name: "ACE_Schedule_All_Threaded_Strategy"
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_Schedule_All_Threaded_Strategy"
---

# ACE\_Schedule\_All\_Threaded\_Strategy(3)

Defines the interface for specifying how to suspend and resume a multithreaded service .

## NAME

ACE\_Schedule\_All\_Threaded\_Strategy -  Defines the interface for specifying how to suspend and resume a multithreaded service .

## SYNOPSIS

```
#include <ace/ACE_Strategies_T.h>
template<class SVC_HANDLER>
class ACE_Schedule_All_Threaded_Strategy :
  public ACE_Scheduling_Strategy<SVC_HANDLER>
{
  public:
    ACE_Schedule_All_Threaded_Strategy (SVC_HANDLER * = 0);
    virtual int suspend (void);
    virtual int resume (void);
    virtual void dump (void) const;
  protected:
    ACE_Thread_Manager *thr_mgr_;
};
```

## DESCRIPTION

This class provides a strategy that suspends and resumes all the Event\_Handlers controlled by a Thread\_Manager in one fell swoop.

## Initialization and termination methods.

```
ACE_Schedule_All_Threaded_Strategy (SVC_HANDLER * = 0);
```

Constructor

## Scheduling methods

```
virtual int suspend (void);
```

Suspend hook.

```
virtual int resume (void);
```

Resume hook.

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

Dump the state of the object.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
