Class Monitor
Provides a mechanism that synchronizes access to objects.
public static class Monitor
- Inheritance
-
Monitor
- Inherited Members
Methods
Enter(object)
Acquires an exclusive lock on the specified object.
public static void Enter(object obj)
Parameters
obj
objectThe object on which to acquire the monitor lock.
Exit(object)
Releases an exclusive lock on the specified object.
public static void Exit(object obj)
Parameters
obj
objectThe object on which to release the lock.