Mēnsūra
|
Provides a lock to protect ROOT routines that are not thread-safe. More...
#include <ROOTLock.hpp>
Public Member Functions | |
ROOTLock ()=delete | |
Constructor is deleted. | |
Static Public Member Functions | |
static void | Lock () |
Locks. | |
static void | Unlock () |
Unlocks. | |
static bool | TryLock () |
Checks if the lock is set. | |
Provides a lock to protect ROOT routines that are not thread-safe.
This class is a simple wrapper around a static mutex. In general, ROOT is not thread-safe, and a number of operations must be protected by a lock. Their list includes (but is likely not limited to) the following: