This will be useful for inter-thread synchronization in situations where the producer thread should not produce anything until at least one consumer is ready for it. Signed-off-by: Lars Wirzenius <liw@liw.fi>