cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::counting_semaphore<LeastMaxValue>::
try_acquire
From cppreference.com
<
cpp
|
thread
|
counting semaphore
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Diagnostics library
Memory management library
Metaprogramming library
(C++11)
General utilities library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Strings library
Text processing library
Numerics library
Date and time library
Input/output library
Filesystem library
(C++17)
Concurrency support library
(C++11)
Execution control library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Concurrency support library
Threads
thread
(C++11)
jthread
(C++20)
hardware_destructive_interference_size
hardware_constructive_interference_size
(C++17)
(C++17)
this_thread
namespace
get_id
(C++11)
yield
(C++11)
sleep_for
(C++11)
sleep_until
(C++11)
Cooperative cancellation
stop_token
(C++20)
inplace_stop_token
(C++26)
never_stop_token
(C++26)
stop_source
(C++20)
inplace_stop_source
(C++26)
stop_callback
(C++20)
inplace_stop_callback
(C++26)
stop_callback_for_t
(C++26)
stoppable_token
(C++26)
unstoppable_token
(C++26)
stoppable-source
(C++26)
stoppable-callback-for
(C++26)
Mutual exclusion
mutex
(C++11)
recursive_mutex
(C++11)
shared_mutex
(C++17)
timed_mutex
(C++11)
recursive_timed_mutex
(C++11)
shared_timed_mutex
(C++14)