Namespaces
Variants
Actions

cnd_signal

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

Unblocks one thread that currently waits on condition variable pointed to by cond. If no threads are blocked, does nothing and returns thrd_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.4 The cnd_signal function (p: 276)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.3.4 The cnd_signal function (p: 379)

[edit] See also

unblocks all threads blocked on a condition variable
(function) [edit]
C++ documentation for condition_variable::notify_one
C++ documentation for condition_variable_any::notify_one

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant