45.8. slapi_wait_condvar()
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.
#include "slapi-plugin.h" int slapi_wait_condvar( Slapi_CondVar *cvar, struct timeval *timeout );
This function takes the following parameters:
|
cvar
| Pointer to a Slapi_CondVar structure representing the condition variable on which you want to wait. |
|
timeout
| Time period to wait for notification on the condition variable. If NULL, the calling function blocks indefinitely. |
This function returns one of the following values:
- A non-zero value if successful.
- 0 if an error occurs; for example, if the condition variable is
NULLor if the mutex associated with the condition variable is not locked.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.