Export (0) Print
Expand All

Semaphore Members

Limits the number of threads that can access a resource or pool of resources concurrently.

The Semaphore type exposes the following members.

  NameDescription
Public method Semaphore Overloaded. Initializes a new instance of the Semaphore class.
Top

  NameDescription
Public method Close When overridden in a derived class, releases all resources held by the current WaitHandle. (Inherited from WaitHandle.)
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Protected method Dispose When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources. (Inherited from WaitHandle.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessControl Gets the access control security for a named system semaphore.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
Public method Static member OpenExisting Overloaded. Opens an existing named semaphore.
Public method Release Overloaded. Exits the semaphore.
Public method SetAccessControl Sets the access control security for a named system semaphore.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WaitOne Overloaded. Blocks the current thread until the current WaitHandle receives a signal.
Top

  NameDescription
Public property Handle Obsolete. Gets or sets the native operating system handle. (Inherited from WaitHandle.)
Public property SafeWaitHandle Gets or sets the native operating system handle. (Inherited from WaitHandle.)
Top

  NameDescription
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the WaitHandle. (Inherited from WaitHandle.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft