Skip to main content

UIActionLock

A static class in Root.Township, Alta.Meta.UI.

A simple global lock so only one UI action runs at a time. An object implementing ILockUIAction takes the lock and must release it with Unlock.

Fields​

1 private and internal field
MemberWhat it is
private static UIActionLock.ILockUIAction currentLockerThe object holding the lock now, or null.

Methods​

MemberWhat it is
static bool CheckIsLocked(UIActionLock.ILockUIAction locker, bool isLocking = true)Returns true if something holds the lock. The overload with a locker takes the lock for it when free (unless isLocking is false).
static bool CheckIsLocked()Returns true if something holds the lock. The overload with a locker takes the lock for it when free (unless isLocking is false).
static void Unlock(UIActionLock.ILockUIAction locker)Releases the lock, but only if the given locker holds it.