Visual Servoing Platform  version 3.1.0
vpMutex Class Reference

#include <visp3/core/vpMutex.h>


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
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 ( )

Definition at line 77 of file vpMutex.h.

Member Function Documentation

◆ lock()

◆ unlock()