add a simple POSIX threads producer-consumer example using a condition variable