NamedSemaphore Methods

Methods

Close Releases all resources held by the current NamedSemaphore.
(Overrides WaitHandleClose)
DisposeReleases all resources used by the current instance of the WaitHandle class.
(Inherited from WaitHandle)
Dispose(Boolean) When overridden in a derived class, releases the unmanaged resources used by the NamedSemaphore, and optionally releases the managed resources.
(Overrides WaitHandleDispose(Boolean))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
GetTypeGets the Type of the current instance.
(Inherited from Object)
InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
OpenExisting Opens an existing named semaphore.
Release Exits the semaphore and returns the previous count.
Release(Int32) Exits the semaphore a specified number of times and returns the previous count.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryOpenExisting Opens the specified named semaphore, if it already exists, and returns a value that indicates whether the operation succeeded.
Unlink Removes a named semaphore.
Unlink(String) Removes a named semaphore.
WaitOne Blocks the current thread until the current NamedSemaphore receives a signal.
(Overrides WaitHandleWaitOne)
WaitOne(Int32) Blocks the current thread until the current instance receives a signal, using a 32-bit signed integer to specify the time interval in milliseconds.
(Overrides WaitHandleWaitOne(Int32))
WaitOne(TimeSpan) Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval.
(Overrides WaitHandleWaitOne(TimeSpan))
WaitOne(Int32, Boolean) Blocks the current thread until the current NamedSemaphore receives a signal, using a 32-bit signed integer to specify the time interval and specifying whether to exit the synchronization domain before the wait.
(Overrides WaitHandleWaitOne(Int32, Boolean))
WaitOne(TimeSpan, Boolean) Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval and specifying whether to exit the synchronization domain before the wait.
(Overrides WaitHandleWaitOne(TimeSpan, Boolean))

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also