LockHelper Class |
Namespace: CMS.Base
public class LockHelper
The LockHelper type exposes the following members.
Name | Description | |
---|---|---|
LockHelper |
Name | Description | |
---|---|---|
EnsureT(T, Object) |
Ensures the value of the given variable in a locked context to prevent multiple loads.
Uses the default constructor of T to initialize the value.
| |
EnsureT(T, FuncT, Object) |
Ensures the value of the given variable in a locked context to prevent multiple loads.
Uses the loadMethod to initialize the value.
| |
Enter | Obsolete.
Acquires an exclusive lock on the given lock object
| |
ExecuteOnceInLifetime |
Ensures that the given action is executed only once
| |
Exit | Obsolete.
Releases an exclusive lock using the given lock object
| |
GetLockObject |
Gets the object for lock.
| |
TryEnter | Obsolete.
Attempts to acquire an exclusive lock on the given object
|