RtMutex Class
A synchronization primitive that can also be used for inter-process synchronization.
Inheritance Hierarchy
System.Object
IntervalZero.MaxRT.wRTOS.RtApi.Threading.RtWaitHandle
IntervalZero.MaxRT.wRTOS.RtApi.Threading.RtMutex
Namespace:
IntervalZero.MaxRT.wRTOS.RtApi.Threading
Assembly:
IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public class RtMutex : RtWaitHandle
The RtMutex class exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
|
Initializes a new instance of the RtMutex class with default properties. |
|
|
|
Initializes a new instance of the RtMutex class with a Boolean value indicating whether the calling thread should have initial ownership of the mutex. |
|
|
|
Initializes a new instance of the RtMutex class with a Boolean value indicating whether the calling thread should have initial ownership of the mutex, and a string that is the name of the mutex. |
|
|
|
Initializes a new instance of the RtMutex class with a Boolean value indicating whether the calling thread should have initial ownership of the mutex, a string that is the name of the mutex, and a Boolean value that, when the method returns, will indicate whether the calling thread was granted initial ownership of the mutex. |
Properties
| Name | Description | |
|---|---|---|
|
|
Gets or sets the native operating system handle. (Inherited from RtWaitHandle.) |
Methods
| Name | Description | |
|---|---|---|
|
|
Close |
Releases all resources held by the current RtSafeWaitHandle.
(Inherited from RtWaitHandle.) |
|
|
Dispose |
Releases all of the resources used by the RtWaitHandle.
(Inherited from RtWaitHandle.) |
|
|
Dispose (Boolean) |
Releases the unmanaged resources used
by the RtWaitHandle, and optionally releases the managed resources.
(Inherited from RtWaitHandle.) |
|
|
OpenExisting |
Opens an existing named mutex.
|
|
|
ReleaseMutex |
Releases the RtMutex once.
|
|
|
WaitOne |
When overridden in a derived class, blocks the current thread until the current WaitHandle receives a signal.
(Inherited from RtWaitHandle.) |
|
|
WaitOne (Int32) |
Blocks the current thread until the current System.Threading.WaitHandle receives
a signal.
(Inherited from RtWaitHandle.) |
|
|
WaitOne (TimeSpan) |
Blocks the current thread until the current System.Threading.WaitHandle receives
a signal.
(Inherited from RtWaitHandle.) |
|
|
WaitOne (Int32, Boolean) |
When overridden in a derived class, blocks the current thread until the current WaitHandle 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.) |
|
|
WaitOne (TimeSpan, Boolean) |
Blocks the current thread until the current System.Threading.WaitHandle receives
a signal.
(Inherited from RtWaitHandle.) |
See Also: