__atomic2::atomic_flag(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’– __atomic2::atomic_flag(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” section 3, no cap. this is the page for __atomic2::atomic_flag, and she is literally the main character of atomic flags πŸ’…βœ¨


✨ NAME ✨

__atomic2::atomic_flag β€” atomic_flag. that's the name, that's the vibe, she's an atomic flag and she knows it πŸŽ€

🌸 SYNOPSIS 🌸

Inherits __atomic_flag_base.

πŸŽ€ Public Member Functions πŸŽ€

  • atomic_flag (bool __i) β€” the constructor that takes a bool __i. yes, the parameter is literally named __i, iykyk 🫢
  • atomic_flag (const atomic_flag &) β€” copy constructor, takes a const atomic_flag &. lowkey iconic behavior πŸ’–
  • void clear (memory_order __m=memory_order_seq_cst) volatile β€” clears things up; it takes memory_order __m, which defaults to memory_order_seq_cst, and the whole thing is volatile. slay ✨
  • atomic_flag & operator= (const atomic_flag &) β€” assignment operator, returns atomic_flag & and takes a const atomic_flag &. periodt πŸ’…
  • bool test_and_set (memory_order __m=memory_order_seq_cst) volatile β€” test_and_set returns a bool; it takes memory_order __m, defaults to memory_order_seq_cst, and it's volatile. no notes, she ate πŸ”₯

πŸ¦‹ Detailed Description πŸ¦‹

atomic_flag

Definition at line 47 of file atomic_2.h.

ngl the detailed description is giving minimal, but that's okay because the definition is right there and it's at line 47 of file atomic_2.h, fr fr 🫢

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

not a human author, just Doxygen doing her thing for libstdc++ and honestly? iconic πŸ€–βœ¨


k bye bestie, this was __atomic2::atomic_flag(3) from libstdc++, dated 21 Apr 2009 β€” catch u later, mwah πŸ’‹πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from