System::Threading::Mutex::WaitOne method
Contents
[
Hide
]Mutex::WaitOne() method
Locks mutex. Performs unlimited waiting if neccessary.
virtual bool System::Threading::Mutex::WaitOne() override
ReturnValue
Always returns true as it does not return until mutex is locked.
See Also
- Class Mutex
- Namespace System::Threading
- Library Aspose.PUB for C++
Mutex::WaitOne(int) method
Locks mutex. Performs waiting if neccessary.
virtual bool System::Threading::Mutex::WaitOne(int millisecondsTimeout) override
Parameter | Type | Description |
---|---|---|
millisecondsTimeout | int | Waiting timeout in milliseconds. |
ReturnValue
Returns true if mutex was locked or false if timeout exceeded.
See Also
- Class Mutex
- Namespace System::Threading
- Library Aspose.PUB for C++
Mutex::WaitOne(TimeSpan) method
Locks mutex. Performs waiting if neccessary.
virtual bool System::Threading::Mutex::WaitOne(TimeSpan timeout) override
Parameter | Type | Description |
---|---|---|
timeout | TimeSpan | A System::TimeSpan that represents the number of milliseconds to wait, or a System::TimeSpan that represents -1 milliseconds to wait indefinitely. |
ReturnValue
Returns true if mutex was locked or false if timeout exceeded.
See Also
- Class TimeSpan
- Class Mutex
- Namespace System::Threading
- Library Aspose.PUB for C++