Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      ATOMIC_FLAG_INIT

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

      Expands to an initializer that can be used to initializeatomic_flag type to the clear state. The value of anatomic_flag that is not initialized using this macro is indeterminate.

      [edit]Example

      #include <stdatomic.h> atomic_flag flag= ATOMIC_FLAG_INIT;

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.17.1/3 ATOMIC_FLAG_INIT (p: 200)
      • 7.17.8/4 ATOMIC_FLAG_INIT (p: 208)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.17.1/3 ATOMIC_FLAG_INIT (p: 273)
      • 7.17.8/4 ATOMIC_FLAG_INIT (p: 285)

      [edit]See also

      (C11)(deprecated in C17)(removed in C23)
      initializes a new atomic object
      (function macro)[edit]
      lock-free atomic boolean flag
      (struct)[edit]
      C++ documentation forATOMIC_FLAG_INIT
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/atomic/ATOMIC_FLAG_INIT&oldid=170544"

      [8]ページ先頭

      ©2009-2025 Movatter.jp