Aurigma Graphics Mill 5.5 for .NET
LockableObject..::.Lock Method
Locks the object.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Overridable Sub Lock
C#
public virtual void Lock()
Implements
Remarks
After calling this method this object is not accessible from any other thread (until Unlock()()() is called). If you try to lock the object twice (e.g. with two consequent calls of this method), ObjectLockedExceptionwill be thrown. You can safely check Locked property to ensure if object is locked.
When you access the object which has been locked, the thread stops and waits until it become unlocked. Using property Timeout you can specify how much time to wait.