Motr
M0
|
#include <sim.h>
Data Fields | |
struct m0_tl | ch_threads |
struct cnt | ch_cnt_sleep |
Synchronization channel.
A channel is conceptually similar to a POSIX condition variable, except that it is simpler due to single-threaded nature of simulation.
A thread can sleep (wait) on a channel by calling sim_chan_wait(). Threads waiting on a channel are woken up one by one by calls to sim_chan_signal() or all together by a call to sim_chan_broadcast().
struct cnt ch_cnt_sleep |