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>";
Bool_t ReleaseLock(ELock lock) const
Release current lock, make sure it the same as the 'lock' argument.
static Bool_t LockValid(ELock lock)
Test if lock is a valid type to take/release.
virtual const char * LockIdStr() const
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
static const char * LockName(ELock lock)
Return name-string for given lock-type.
Bool_t TakeLock(ELock lock) const
Lock the object in mode 'lock'.
Simple locking interface used by viewer and scene.