Constructors

Synopses

Declared in <folly/fibers/SemaphoreBase.h>

Deleted copy constructor.

SemaphoreBase(SemaphoreBase const& other) = delete;

Deleted move constructor.

SemaphoreBase(SemaphoreBase&& other) = delete;

Constructs the semaphore with the given number of tokens.

explicit
SemaphoreBase(size_t tokenCount);

Parameters

Name

Description

other

The semaphore that would be copied.

tokenCount

Initial token capacity of the semaphore.

Created with MrDocs