Skip to content

timed_semaphore acquire

Alairion edited this page May 8, 2021 · 2 revisions

Functions

(1) void acquire();
  1. Wait until a resource is available, then decrements the resource counter.

Parameters

None.

Return value

  1. None.

Exceptions

  1. May throw an exception is the resource counter can not be decremented.

Implementation details

  1. On Windows, calls WaitForSingleObject
    On Posix systems, calls sem_wait
Clone this wiki locally