template class Poco::ScopedUnlock

Overview

A class that simplifies thread synchronization with a mutex. Moreā€¦

#include <ScopedUnlock.h>

template <class M>
class ScopedUnlock
{
public:
    // construction

    ScopedUnlock(
        M& mutex,
        bool unlockNow = true
        );
};

Detailed Documentation

A class that simplifies thread synchronization with a mutex.

The constructor accepts a Mutex and unlocks it. The destructor locks the mutex.