![]() |
Visual Servoing Platform
version 3.6.1 under development (2025-03-12)
|
#include <visp3/core/vpMutex.h>
Public Member Functions | |
vpScopedLock (vpMutex &mutex) | |
virtual | ~vpScopedLock () |
Class that allows protection by mutex.
The following example shows how to use this class to protect a portion of code from concurrent access. The scope of the mutex lock/unlock is determined by the constructor/destructor.
Without using vpScopedLock, the previous example would become:
|
inline |
Constructor that locks the mutex.
Definition at line 191 of file vpMutex.h.
References vpMutex::lock().
|
inlinevirtual |
Destructor that unlocks the mutex.
Definition at line 193 of file vpMutex.h.
References vpMutex::unlock().