Lines Matching refs:events
6 An :dfn:`event object` is a kernel object that implements traditional events.
17 on an event object until the desired set of events has been delivered to the
18 event object. When new events are delivered to the event object, all threads
23 * A 32-bit value that tracks which events have been delivered to it.
27 Events may be **delivered** by a thread or an ISR. When delivering events, the
28 events may either overwrite the existing set of events or add to them in
29 a bitwise fashion. When overwriting the existing set of events, this is referred
31 posting. Both posting and setting events have the potential to fulfill match
35 Threads may wait on one or more events. They may either wait for all of the
36 requested events, or for any of them. Furthermore, threads making a wait request
37 have the option of resetting the current set of events tracked by the event
43 not attempt to wait for the events.
76 The following code builds on the example above, and sets the events tracked by
95 The following code builds on the example above, and posts a set of events to
114 Threads wait for events by calling :c:func:`k_event_wait`.
117 for any of the specified events to be posted. A warning is issued if none
118 of the events are posted in time.
124 uint32_t events;
126 events = k_event_wait(&my_event, 0xFFF, false, K_MSEC(50));
127 if (events == 0) {
136 Alternatively, the consumer thread may desire to wait for all the events
143 uint32_t events;
145 events = k_event_wait_all(&my_event, 0x121, false, K_MSEC(50));
146 if (events == 0) {
158 Use events to indicate that a set of conditions have occurred.
160 Use events to pass small amounts of data to multiple threads at once.