std::experi...ier::barrier(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::experimental::barrier::barrier πŸ’…

okay so bestie, this page is from the C++ Standard Libary manual (their spelling, not mine 😭), page tag std::experi...ier::barrier(3), and it’s tagged concurrency TS. The title is std::experimental::barrier::barrier, and we’re gonna get into it. ✨


🌸 NAME 🌸

std::experimental::barrier::barrier β€” that’s the name, bestie. The manual is C++ Standard Libary, and this page is the std::experimental::barrier::barrier one. No cap. πŸŽ€

✨ Synopsis ✨

Exact synopsis, right here:

          explicit barrier( std::ptrdiff_t num_threads ); (1) (concurrency TS)
          barrier( const barrier & ) = delete;            (2) (concurrency TS)

Numbered tea time β˜•:

  1. Constructs a barrier for num_threads participating threads. The set of participating threads is the first num_threads threads to arrive at the synchronization point.
  2. Copy constructor is deleted; barrier is not copyable. So no copying, periodt. πŸš«πŸ’…

πŸŽ€ Parameters πŸŽ€

  • num_threads β€” the number of participating threads for the barrier; must be non-negative. No negative vibes allowed, bestie. 😭

πŸ¦‹ Notes πŸ¦‹

If num_threads is zero, the set of participating threads is empty, and barrier can only be destroyed. That’s the whole note β€” zero threads means an empty set, and destruction is the only move. 🫢


source: http://cppreference.com Β· version/date: 2024.06.10 Β· manual page: std::experi...ier::barrier(3). byeee, go slay your synchronization point πŸ’–βœ¨

πŸ“¦ where this page comes from