![]() |
Visual Servoing Platform
version 3.3.0
|
#include <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:
More examples are provided in Tutorial: How to use multi-threading capabilities.
|
inline |