Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      kill_dependency

      From cppreference.com
      <c‎ |atomic
       
       
      Concurrency support library
       
      Defined in header<stdatomic.h>
      A kill_dependency( A y);
      (since C11)

      Informs the compiler that the dependency tree started by anmemory_order_consume atomic load operation does not extend past the return value ofkill_dependency; that is, the argument does not carry a dependency into the return value.

      The function is implemented as a macro.A is the type ofy.

      Contents

      [edit]Parameters

      y - the expression whose return value is to be removed from a dependency tree

      [edit]Return value

      Returnsy, no longer a part of a dependency tree.

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.17.3.1 The kill_dependency macro (p: TBD)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.17.3.1 The kill_dependency macro (p: 203-204)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.17.3.1 The kill_dependency macro (p: 278)

      [edit]See also

      C++ documentation forkill_dependency
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/atomic/kill_dependency&oldid=155478"

      [8]ページ先頭

      ©2009-2025 Movatter.jp