Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      cnd_init

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

      Initializes new condition variable. The object pointed to bycond will be set to value that identifies the condition variable.

      Contents

      [edit]Parameters

      cond - pointer to a variable to store identifier of the condition variable to

      [edit]Return value

      thrd_success if the condition variable was successfully created. Otherwise returnsthrd_nomem if there was insufficient amount of memory orthrd_error if another error occurred.

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.26.3.3 The cnd_init function (p: 276)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.26.3.3 The cnd_init function (p: 379)

      [edit]See also

      C++ documentation forcondition_variable
      C++ documentation forcondition_variable_any
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/thread/cnd_init&oldid=138852"

      [8]ページ先頭

      ©2009-2025 Movatter.jp