Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      atomic_thread_fence

      From cppreference.com
      <c‎ |atomic
       
       
      Concurrency support library
       
      Defined in header<stdatomic.h>
      void atomic_thread_fence(memory_order order);
      (since C11)

      Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed byorder, without an associated atomic operation. For example, all non-atomic and relaxed atomic stores that happen before amemory_order_release fence in thread A will be synchronized with non-atomic and relaxed atomic loads from the same locations made in thread B after anmemory_order_acquire fence.

      Contents

      [edit]Parameters

      order - the memory ordering executed by this fence

      [edit]Return value

      (none)

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.17.4.1 The atomic_thread_fence function (p: 204)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.17.4.1 The atomic_thread_fence function (p: 278-279)

      [edit]See also

      fence between a thread and a signal handler executed in the same thread
      (function)[edit]
      C++ documentation foratomic_thread_fence
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/atomic/atomic_thread_fence&oldid=138698"

      [8]ページ先頭

      ©2009-2025 Movatter.jp