Skip to content

semaphore acquire

Alairion edited this page May 8, 2021 · 3 revisions

nes::semaphore::acquire

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