---
name: "ost_Cancellation"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_Cancellation"
---

# ost\_Cancellation(3)

A class to automatically set the thread cancellation mode of a member function.

## NAME

ost::Cancellation - A class to automatically set the thread cancellation mode of a member function.

## SYNOPSIS

`#include <thread.h>`

### Public Member Functions

**Cancellation** (**Thread::Cancel** cancel)\
 **~Cancellation** ()\

## Detailed Description

A class to automatically set the thread cancellation mode of a member function.

When the member function returns and the automatic variable falls out of scope, the previous thread cancellation mode is restored.

**Author**

David Sugar dyfet@gnu.org

Automatic cancellation mode setting.

## Constructor & Destructor Documentation

### ost::Cancellation::Cancellation (Thread::Cancel cancel)

### ost::Cancellation::~Cancellation ()

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
