Class Poco::ScopedLockWithUnlock
Author: Applied Informatics Software Engineering GmbH and Contributors
Date: 2009-11-24

# Poco

# template < class M >

# class ScopedLockWithUnlock

Library: Foundation
Package: Threading
Header: Poco/ScopedLock.h

## Description

A class that simplifies thread synchronization with a mutex. The constructor accepts a Mutex and locks it. The destructor unlocks the mutex. The unlock() member function allows for manual unlocking of the mutex.

## Member Summary

Member Functions: unlock

## Constructors

### ScopedLockWithUnlock

ScopedLockWithUnlock(
M & mutex
);

## Destructor

### ~ScopedLockWithUnlock

~ScopedLockWithUnlock();

## Member Functions

### unlock

void unlock();