RTMutex Class

A synchronization primitive that can also be used for inter-process synchronization.
Inheritance Hierarchy
SystemObject
  IntervalZero.RTX64.RTAPI.ThreadingRTWaitHandle
    IntervalZero.RTX64.RTAPI.ThreadingRTMutex

Namespace:  IntervalZero.RTX64.RTAPI.Threading
Assembly:  IntervalZero.RTX64 (in IntervalZero.RTX64.dll) Version: 3.3.0.0 (File version: 3.5.0)

Syntax
public class RTMutex : RTWaitHandle

The RTMutex type exposes the following members.

Constructors
NameDescription
Public methodRTMutex
Initializes a new instance of the RTMutex class with default properties.
Public methodRTMutex(Boolean)
Initializes a new instance of the RTMutex class with a Boolean value indicating whether the calling thread should have initial ownership of the mutex.
Public methodRTMutex(Boolean, String)
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.
Public methodRTMutex(Boolean, String, Boolean)
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.
Top
Properties
NameDescription
Public propertySafeWaitHandle
Gets or sets the native operating system handle.
(Inherited from RTWaitHandle.)
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 methodStatic memberOpenExisting
Opens an existing named mutex.
Public methodReleaseMutex
Releases the RTMutex once.
Public methodWaitOne
When overridden in a derived class, blocks the current thread until the current WaitHandle 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 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.)
Public methodWaitOne(TimeSpan, Boolean)
Blocks the current thread until the current System.Threading.WaitHandle receives a signal.
(Inherited from RTWaitHandle.)
Top
See Also