37 Info(
"TGLLockable::TakeLock",
"'%s' took %s",
42 Error(
"TGLLockable::TakeLock",
"'%s' unable to take %s, already %s",
56 Info(
"TGLLockable::ReleaseLock",
"'%s' released %s",
61 Error(
"TGLLockable::ReleaseLock",
"'%s' unable to release %s, is %s",
71 static const char* names[] =
72 {
"Unlocked",
"DrawLock",
"SelectLock",
"ModifyLock" };
77 return "<unknown-lock>";
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
Simple locking interface used by viewer and scene.
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.