System::Threading::Semaphore::WaitOne method
Semaphore::WaitOne() method
Locks semaphore. Performs unlimited waiting if neccessary.
virtual bool System::Threading::Semaphore::WaitOne() override
ReturnValue
Always returns true as it does not return until semaphore is locked.
See Also
- Class Semaphore
- Namespace System::Threading
- Library Aspose.TeX for C++
Semaphore::WaitOne(int) method
Locks semaphore. Performs waiting if neccessary.
virtual bool System::Threading::Semaphore::WaitOne(int millisecondsTimeout) override
Parameter | Type | Description |
---|---|---|
millisecondsTimeout | int | Waiting timeout in milliseconds. |
ReturnValue
Returns true if semaphore was locked or false if timeout exceeded.
See Also
- Class Semaphore
- Namespace System::Threading
- Library Aspose.TeX for C++