Threadsafe The function restarts all the
threads that are waiting on the condition. If no
threads are waiting on cond, nothing happens.
Note: When several
threads are waiting for the condition variable, the order in which
threads are started depends on operating
system scheduling rules, and may vary from
system to
system and from time to time.