-
Notifications
You must be signed in to change notification settings - Fork 7
timed_semaphore timed_semaphore
Alairion edited this page May 8, 2021
·
2 revisions
nes::timed_semaphore::timed_semaphore
(1) explicit timed_semaphore(std::size_t initial_count = 0);
(2) timed_semaphore(const timed_semaphore&) = delete;
(3) timed_semaphore(timed_semaphore&& other) noexcept = delete;
- Constructs a new timed semaphore object with
initial_count
resources available. - Deleted copy-constructor.
- Deleted move-constructor.
Name | Description |
---|---|
initial_count |
The count of resources available right after construction. The default value is 0
|
- Explicit.
- May throw a
std::runtime_error
if the timed_semaphore can not be created. - Deleted.
- Deleted.
- On Windows, the timed_semaphore is created using
Createtimed_semaphoreW
On Posix systems, the timed_semaphore is created usingsem_init