Syntax
#include "slapi-plugin.h" int slapi_wait_condvar( Slapi_CondVar *cvar, struct timeval *timeout ); Parameters
#include "slapi-plugin.h" int slapi_wait_condvar( Slapi_CondVar *cvar, struct timeval *timeout );
The function has the following parameters:
cvar
timeout
Returns. One of the following values:
A non-zero value if successful.
0 if an error occurs (for example, if the condition variable is NULL or if the mutex associated with the condition variable is not locked).
Description. This function waits on the condition variable until it receives notification (see the slapi_notify_condvar() function). Before calling this function, the calling thread must lock the mutex associated with this condition variable.