36 Info(
"TGLLockable::TakeLock",
"'%s' took %s",
41 Error(
"TGLLockable::TakeLock",
"'%s' unable to take %s, already %s",
55 Info(
"TGLLockable::ReleaseLock",
"'%s' released %s",
60 Error(
"TGLLockable::ReleaseLock",
"'%s' unable to release %s, is %s",
70 static const char* names[] =
71 {
"Unlocked",
"DrawLock",
"SelectLock",
"ModifyLock" };
76 return "<unknown-lock>";
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Int_t gDebug
Global variable setting the debug level. Set to 0 to disable, increase it in steps of 1 to increase t...
Bool_t TakeLock(ELock lock) const
Lock the object in mode 'lock'.
Bool_t ReleaseLock(ELock lock) const
Release current lock, make sure it the same as the 'lock' argument.
static const char * LockName(ELock lock)
Return name-string for given lock-type.
virtual const char * LockIdStr() const
static Bool_t LockValid(ELock lock)
Test if lock is a valid type to take/release.