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

#include <ScopedLock.h>

Public Member Functions

 ScopedLock (M &mutex)
 
 ScopedLock (M &mutex, long milliseconds)
 
 ~ScopedLock ()
 

Private Member Functions

 ScopedLock ()
 
 ScopedLock (const ScopedLock &)
 
ScopedLockoperator= (const ScopedLock &)
 

Private Attributes

M & _mutex
 

Detailed Description

template<class M>
class Poco::ScopedLock< 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.

Definition at line 28 of file ScopedLock.h.

Constructor & Destructor Documentation

◆ ScopedLock() [1/4]

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

Definition at line 36 of file ScopedLock.h.

+ Here is the caller graph for this function:

◆ ScopedLock() [2/4]

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

Definition at line 41 of file ScopedLock.h.

◆ ~ScopedLock()

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

Definition at line 46 of file ScopedLock.h.

◆ ScopedLock() [3/4]

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

◆ ScopedLock() [4/4]

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ _mutex

template<class M >
M& Poco::ScopedLock< M >::_mutex
private

Definition at line 59 of file ScopedLock.h.


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