hpx::binary_semaphore

hpx::binary_semaphore#

Defined in header hpx/semaphore.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

class binary_semaphore#

A binary semaphore is a semaphore object that has only two states. binary_semaphore is an alias for specialization of hpx::counting_semaphore with LeastMaxValue being 1. HPX’s implementation of binary_semaphore is more efficient than the default implementation of a counting semaphore with a unit resource count (hpx::counting_semaphore).