Poco

template < class M >

class ScopedLockWithUnlock

File Information

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

Description

A class that simplifies thread synchronization with a mutex. The constructor accepts a Mutex (and optionally a timeout value in milliseconds) 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 inline

explicit ScopedLockWithUnlock(
    M & mutex
);

ScopedLockWithUnlock inline

ScopedLockWithUnlock(
    M & mutex,
    long milliseconds
);

Destructor

~ScopedLockWithUnlock inline

~ScopedLockWithUnlock();

Member Functions

unlock inline

void unlock();

Securely control IoT edge devices from anywhere   Connect a Device