---
name: "__gnu_cxx::_Lock"
section: "3"
platform: "linux"
package: "libstdc++6-4.1-doc"
version: "4.1.2-25"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_cxx::_Lock"
---

# \_\_gnu\_cxx::\_Lock(3)

## NAME

\_\_gnu\_cxx::\_Lock -

## SYNOPSIS

## Detailed Description

There is no automatic locking or unlocking happening without the programmer's explicit instructions. This class unlocks the mutex ONLY if it has not been locked. However, this check does not apply for locking, and wayward use may cause dead-locks.

Definition at line 135 of file bitmap\_allocator.h.

### Public Member Functions

**\_Lock** (**\_Mutex** \*\_\_mptr)\
 void **\_M\_lock** ()\
 void **\_M\_unlock** ()\

## Author

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