Lines Matching refs:condition
6 A :dfn:`condition variable` is a synchronization primitive
7 that enables threads to wait until a particular condition occurs.
16 Any number of condition variables can be defined (limited only by available RAM). Each
17 condition variable is referenced by its memory address.
19 To wait for a condition to become true, a thread can make use of a condition
22 A condition variable is basically a queue of threads that threads can put
23 themselves on when some state of execution (i.e., some condition) is not as
24 desired (by waiting on the condition). The function
28 #. Puts the current thread in the condition variable queue.
32 the condition using :c:func:`k_condvar_signal` or
38 A condition variable must be initialized before it can be used.
47 A condition variable is defined using a variable of type :c:struct:`k_condvar`.
50 The following code defines a condition variable:
58 Alternatively, a condition variable can be defined and initialized at compile time
70 A thread can wait on a condition by calling :c:func:`k_condvar_wait`.
72 The following code waits on the condition variable.
96 A condition variable is signaled on by calling :c:func:`k_condvar_signal` for
108 * Do some work and fulfill the condition
119 Use condition variables with a mutex to signal changing states (conditions) from
121 Condition variables are not the condition itself and they are not events.
122 The condition is contained in the surrounding programming logic.