Wait for a change in a condition variable.
#include "slapi-plugin.h" int slapi_wait_condvar(Slapi_CondVar *cvar,struct timeval *timeout);
This function takes the following parameter:
Condition variable on which to wait
NULL means block until notified. Otherwise, block until the time is up, then try again to acquire the lock.
This function enables thread synchronization using a wait/notify mechanism.
This function returns 1 if successful. Otherwise, it returns NULL.
Call slapi_notify_condvar() to notify other threads of a change to the condition variable.