Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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, testRealSense.cpp, tutorial-face-detector-live-threaded.cpp, tutorial-grabber-opencv-threaded.cpp, and tutorial-grabber-v4l2-threaded.cpp.

Definition at line 70 of file vpMutex.h.

Constructor & Destructor Documentation

vpMutex::vpMutex ( )
inline

Definition at line 72 of file vpMutex.h.

Member Function Documentation