ViSP  2.10.0
vpMutex::vpScopedLock Class Reference

#include <vpMutex.h>

Public Member Functions

 vpScopedLock (vpMutex &mutex)
 
 ~vpScopedLock ()
 

Detailed Description

Class that allows protection by mutex.

Warning
This class needs the pthread third-party library.

Definition at line 85 of file vpMutex.h.

Constructor & Destructor Documentation

vpMutex::vpScopedLock::vpScopedLock ( vpMutex mutex)
inline

Definition at line 97 of file vpMutex.h.

References vpMutex::lock().

vpMutex::vpScopedLock::~vpScopedLock ( )
inline

Definition at line 102 of file vpMutex.h.

References vpMutex::unlock().