Hello there. Can you provide me with an implementation of a conditional variable in C using semaphores and mutexes?