Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      cnd_broadcast

      From cppreference.com
      <c‎ |thread
       
       
      Concurrency support library
       
      Defined in header<threads.h>
      int cnd_broadcast(cnd_t*cond);
      (since C11)

      Unblocks all threads that are blocked on condition variablecond at the time of the call. If no threads are blocked oncond, the function does nothing and returnsthrd_success.

      Contents

      [edit]Parameters

      cond - pointer to a condition variable

      [edit]Return value

      thrd_success if successful,thrd_error otherwise.

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.26.3.1 The cnd_broadcast function (p: 275-276)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.26.3.1 The cnd_broadcast function (p: 378)

      [edit]See also

      unblocks one thread blocked on a condition variable
      (function)[edit]
      C++ documentation forcondition_variable::notify_all
      C++ documentation forcondition_variable_any::notify_all
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/thread/cnd_broadcast&oldid=154664"

      [8]ページ先頭

      ©2009-2025 Movatter.jp