Visual Servoing Platform  version 3.5.0 under development (2022-02-15)
vpMutex Class Reference

#include <visp3/core/vpMutex.h>

Classes

class  vpScopedLock
 

Public Member Functions

 vpMutex ()
 
void lock ()
 
void unlock ()
 

Detailed Description

Class that allows protection by mutex.

This class implements native pthread functionalities if available, of native Windows threading capabilities if pthread is not available under Windows.

An example of vpMutex usage is given in testMutex.cpp.

More examples are provided in Tutorial: How to use multi-threading capabilities.

See also
vpScopedLock
Examples:
grabRealSense.cpp, testForceTorqueAti.cpp, testMutex.cpp, tutorial-face-detector-live-threaded.cpp, tutorial-grabber-opencv-threaded.cpp, and tutorial-grabber-v4l2-threaded.cpp.

Definition at line 74 of file vpMutex.h.

Constructor & Destructor Documentation

◆ vpMutex()

vpMutex::vpMutex ( )
inline

Definition at line 77 of file vpMutex.h.

Member Function Documentation

◆ lock()

◆ unlock()