This function takes the following parameter:
Condition variable changed
NULL means notify only the next thread waiting for notification. Otherwise, all threads are notified.