---
name: "CL_MutexSection"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_MutexSection"
---

# CL\_MutexSection(3)

Lock a mutex until the end of a scope.

## NAME

CL\_MutexSection - Lock a mutex until the end of a scope.

## DESCRIPTION

This class is a way to ensure a mutex will be released at the end of  a scope. When an instance is constructed, it will lock the mutex, and when the instance is destroyed (at the exit of its scope), it will unlock the mutex.

## CLASS MEMBERS

- **CL\_MutexSection**(

  ```
  CL_Mutex *mutex)
  ```

- virtual **~CL\_MutexSection**()

  ## MEMBERS WITH DESCRIPTIONS

- **CL\_MutexSection**(

  ```
  CL_Mutex *mutex)
  ```

  ```
  Description:
  ```

- virtual **~CL\_MutexSection**()

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
