Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      atomic_flag

      From cppreference.com
      <c‎ |atomic
       
       
      Concurrency support library
       
      Defined in header<stdatomic.h>
      typedefstruct/* unspecified */ atomic_flag;
      (since C11)

      atomic_flag is an atomic boolean type. Unlike other atomic types, it is guaranteed to be lock-free. Unlikeatomic_bool,atomic_flag does not provide load or store operations.

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.17.1/5 atomic_flag (p: 293)
      • 7.17.8 Atomic flag type and operations (p: 302-303)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.17.1/4 atomic_flag (p: 200)
      • 7.17.8 Atomic flag type and operations (p: 208-209)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.17.1/4 atomic_flag (p: 273)
      • 7.17.8 Atomic flag type and operations (p: 285-286)

      [edit]See also

      initializes a newatomic_flag
      (macro constant)[edit]
      sets an atomic_flag to true and returns the old value
      (function)[edit]
      sets an atomic_flag to false
      (function)[edit]
      C++ documentation foratomic_flag
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/atomic/atomic_flag&oldid=176618"

      [8]ページ先頭

      ©2009-2025 Movatter.jp