Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      atomic_flag_clear, atomic_flag_clear_explicit

      From cppreference.com
      <c‎ |atomic
       
       
      Concurrency support library
       
      Defined in header<stdatomic.h>
      void atomic_flag_clear(volatileatomic_flag* obj);
      (1)(since C11)
      void atomic_flag_clear_explicit(volatileatomic_flag* obj,memory_order order);
      (2)(since C11)

      Atomically changes the state of aatomic_flag pointed to byobj to clear (false). The first version orders memory accesses according tomemory_order_seq_cst, the second version orders memory accesses according toorder.

      The argument is pointer to a volatile atomic flag to accept addresses of both non-volatile andvolatile (e.g. memory-mapped I/O) atomic flags.

      Contents

      [edit]Parameters

      obj - pointer to the atomic flag object to modify
      order - the memory synchronization ordering for this operation: all values are permitted

      [edit]Return value

      (none)

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.17.8.2 The atomic_flag_clear functions (p: 209)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.17.8.2 The atomic_flag_clear functions (p: 286)

      [edit]See also

      sets an atomic_flag to true and returns the old value
      (function)[edit]
      C++ documentation foratomic_flag_clear,atomic_flag_clear_explicit
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/atomic/atomic_flag_clear&oldid=138685"

      [8]ページ先頭

      ©2009-2026 Movatter.jp