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

# ost\_objSync(3)

Generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock.

## NAME

ost::objSync\< T \> - Generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock.

## SYNOPSIS

`#include <objsync.h>`

### Protected Member Functions

void **objLock** (void)\
 void **objUnlock** (void)\

## Detailed Description

### template\<class T\>

class ost::objSync\< T \>" Generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock.

**Author**

David Sugar dyfet@gnutelephony.org

global mutex locked class.

## Member Function Documentation

### template\<class T \> void ost::objSync\< T \>::objLock (void)` [inline]`, ` [protected]`

### template\<class T \> void ost::objSync\< T \>::objUnlock (void)` [inline]`, ` [protected]`

## Author

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