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

Semaphore::WaitOne(int) method

Locks semaphore. Performs waiting if neccessary.

virtual bool System::Threading::Semaphore::WaitOne(int millisecondsTimeout) override
ParameterTypeDescription
millisecondsTimeoutintWaiting timeout in milliseconds.

ReturnValue

Returns true if semaphore was locked or false if timeout exceeded.

See Also