---
name: "corelinux_Synchronized_Guard"
section: "3"
platform: "linux"
package: "libcorelinux-dev"
version: "0.4.32-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/corelinux_Synchronized_Guard"
---

# corelinux\_Synchronized\_Guard(3)

Guard is the automatic instance that insures a lock is not held beyond the scope where it was instantiated.

## NAME

corelinux::Synchronized::Guard - **Guard** is the automatic instance that insures a lock is not held beyond the scope where it was instantiated.

## SYNOPSIS

`#include <Synchronized.hpp>`

### Public Member Functions

**Guard** (**GuardCref**)\
 *Default constructor.*  **~Guard** (void)\
 *Destructor.*  void **release** (void)\
 *Releases before destruction.*

### Protected Member Functions

**Guard** (**SynchronizedPtr**)\
 *Called by* **Synchronized** *object.*  **Guard** (void)\
 *Default constructor never called.*  **GuardRef** **operator=** (**GuardCref**)\
 *Assignment operator never called.*

### Friends

class **Synchronized**\

## Detailed Description

**Guard** is the automatic instance that insures a lock is not held beyond the scope where it was instantiated.

## Author

Generated automatically by Doxygen for CoreLinux++ from the source code.
