RtMutex Constructor (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.
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 RtMutex(
bool initiallyOwned,
string name
)
Parameters
initiallyOwned
Type: System.Boolean
true to give the calling thread initial ownership of the mutex; otherwise, false.
name
Type: System.String
The name of the Mutex.
If the value is a null reference (Nothing in Visual Basic), the Mutex is unnamed.
Exceptions
| Exception | Condition |
|---|---|
|
ApplicationException |
Failed to create mutex. |
See Also: