Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::ScopedLockWithUnlock< M > Class Template Reference

#include <ScopedLock.h>

Public Member Functions

 ScopedLockWithUnlock (M &mutex)
 
 ScopedLockWithUnlock (M &mutex, long milliseconds)
 
 ~ScopedLockWithUnlock ()
 
void unlock ()
 

Private Member Functions

 ScopedLockWithUnlock ()
 
 ScopedLockWithUnlock (const ScopedLockWithUnlock &)
 
ScopedLockWithUnlockoperator= (const ScopedLockWithUnlock &)
 

Private Attributes

M * _pMutex
 

Detailed Description

template<class M>
class Poco::ScopedLockWithUnlock< M >

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.

Definition at line 68 of file ScopedLock.h.

Constructor & Destructor Documentation

◆ ScopedLockWithUnlock() [1/4]

template<class M >
Poco::ScopedLockWithUnlock< M >::ScopedLockWithUnlock ( M & mutex)
inlineexplicit

Definition at line 78 of file ScopedLock.h.

◆ ScopedLockWithUnlock() [2/4]

template<class M >
Poco::ScopedLockWithUnlock< M >::ScopedLockWithUnlock ( M & mutex,
long milliseconds )
inline

Definition at line 83 of file ScopedLock.h.

◆ ~ScopedLockWithUnlock()

template<class M >
Poco::ScopedLockWithUnlock< M >::~ScopedLockWithUnlock ( )
inline

Definition at line 88 of file ScopedLock.h.

◆ ScopedLockWithUnlock() [3/4]

template<class M >
Poco::ScopedLockWithUnlock< M >::ScopedLockWithUnlock ( )
private

◆ ScopedLockWithUnlock() [4/4]

template<class M >
Poco::ScopedLockWithUnlock< M >::ScopedLockWithUnlock ( const ScopedLockWithUnlock< M > & )
private

Member Function Documentation

◆ operator=()

template<class M >
ScopedLockWithUnlock & Poco::ScopedLockWithUnlock< M >::operator= ( const ScopedLockWithUnlock< M > & )
private

◆ unlock()

template<class M >
void Poco::ScopedLockWithUnlock< M >::unlock ( )
inline

Definition at line 100 of file ScopedLock.h.

Member Data Documentation

◆ _pMutex

template<class M >
M* Poco::ScopedLockWithUnlock< M >::_pMutex
private

Definition at line 110 of file ScopedLock.h.


The documentation for this class was generated from the following file: