ThreadGateSlim Methods |
The ThreadGateSlim type exposes the following members.
Name | Description | |
---|---|---|
![]() | Close |
Tries to acquire the exclusive lock, the attempt is
willing to wait up the specified millis or -1 to wait
infinite.
|
![]() | Enter |
Tries to acquire the non-exclusive lock, the attempt is
willing to wait up the specified millis or -1 to wait
infinite.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Exit |
Releases the non-exclusive lock. If the non-exclusive lock has
no more matching Enter(millis) from any thread the exclusive
lock is released so that threads wanting to Close the Gate
can proceed.
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Open |
Releases the exclusive lock. If the exclusive lock has
no more matching Close(millis) the exclusive lock is released.
Any Threads waiting to Enter(millis) or Close(millis) will
continue executing.
If the thread currently is also holding the non-exclusive
lock, the thread will immediately Enter the lock. The thread
will have to match all calls to Enter(millis) with the
corresponding count of Exit().
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |