GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::latch(3) C++ Standard Libary std::experimental::latch(3)

std::experimental::latch - std::experimental::latch


Defined in header <experimental/latch>
class latch; (concurrency TS)


The latch class is a downward counter of type ptrdiff_t which can be used to
synchronize threads. The value of the counter is initialized on creation. Threads
may block on the latch until the counter is decremented to zero. There is no
possibility to increase or reset the counter, which makes the latch a single-use
barrier.


Unlike std::experimental::barrier, std::experimental::latch can be decremented by a
participating thread more than once.


constructor constructs a latch
(public member function)
destructor destroys the latch
(public member function)
operator= not copy-assignable
[deleted] (public member function)
count_down_and_wait decrements the counter by 1 and blocks until it reaches zero
(public member function)
count_down decrements the counter in a non-blocking manner
(public member function)
is_ready tests if the internal counter equals zero
(public member function)
wait blocks until the counter reaches zero
(public member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.