45.6. slapi_notify_condvar()
This function notifies one or all threads that are waiting on the condition variable (see the slapi_wait_condvar() function). Before calling this function, the calling thread must lock the mutex associated with this condition variable.
#include "slapi-plugin.h" int slapi_notify_condvar( Slapi_CondVar *cvar, int notify_all );
This function takes the following parameters:
|
cvar
| Pointer to an Slapi_CondVar structure representing the condition variable. |
|
notify_all
| If 1, notifies all threads that are waiting on the condition variable. |
This function returns one of the following values:
- A non-zero value if the thread (or threads) are successfully notified.
- 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.