RTSemaphore Members IntervalZero RTX Managed Code

The RTSemaphore type exposes the following members.

Constructors

NameDescription
Public methodRTSemaphore(Int32, Int32)
Initializes a new instance of the OnlineSemaphore class, specifying the maximum number of concurrent entries, and optionally reserving some entries for the calling thread.
Public methodRTSemaphore(Int32, Int32, String)
Initializes a new instance of the OnlineSemaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, and optionally specifying the name of a system semaphore object.
Public methodRTSemaphore(Int32, Int32, String, Boolean )
Initializes a new instance of the OnlineSemaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, optionally specifying the name of a system semaphore object, and specifying an out parameter that indicates whether a new system object was created.
Back to Top
Methods

NameDescription
Public methodClose
Releases all resources held by the current RTSafeWaitHandle.
(Inherited from RTWaitHandle.)
Public methodDispose
Releases all of the resources used by the RTWaitHandle.
(Inherited from RTWaitHandle.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the RTWaitHandle, and optionally releases the managed resources.
(Inherited from RTWaitHandle.)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodFinalize
Finalizes the RTWaitHandle instance.
(Inherited from RTWaitHandle.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodStatic memberOpenExisting
Opens an existing named semaphore.
Public methodRelease
Exits the semaphore, returning the previous count.
Public methodRelease(Int32)
Exits the semaphore, returning the previous count.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodWaitOne
When overridden in a derived class, blocks the current thread until the current OnlineWaitHandle receives a signal.
(Inherited from RTWaitHandle.)
Public methodWaitOne(Int32)
Blocks the current thread until the current System.Threading.WaitHandle receives a signal.
(Inherited from RTWaitHandle.)
Public methodWaitOne(TimeSpan)
Blocks the current thread until the current System.Threading.WaitHandle receives a signal.
(Inherited from RTWaitHandle.)
Public methodWaitOne(Int32, Boolean)
When overridden in a derived class, blocks the current thread until the current OnlineWaitHandle receives a signal, using 32-bit signed integer to measure the time interval and specifying whether to exit the synchronization domain before the wait.
(Inherited from RTWaitHandle.)
Public methodWaitOne(TimeSpan, Boolean)
Blocks the current thread until the current System.Threading.WaitHandle receives a signal.
(Inherited from RTWaitHandle.)
Back to Top
Properties

NameDescription
Public propertySafeWaitHandle
Gets or sets the native operating system handle.
(Inherited from RTWaitHandle.)
Back to Top
See Also