Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 483

Table of Contents

Advertisement

When you are done working with the mutex, you can free the
structure by calling the
slapi_notify_condvar()
Notifies a thread that is waiting on the specified condition variable.
Syntax
#include "slapi-plugin.h"
int slapi_notify_condvar( Slapi_CondVar *cvar, int notify_all );
Parameters
This function takes the following parameters:
cvar
notify_all
Returns
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 NULL or if the
mutex associated with the condition variable is not locked).
Description
This function notifies one or all threads that are waiting on the condition variable
(see the
thread must lock the mutex associated with this condition variable.
slapi_unlock_mutex()
Unlocks the specified mutex.
Syntax
#include "slapi-plugin.h"
int slapi_unlock_mutex( Slapi_Mutex *mutex );
slapi_destroy_mutex()
Pointer to an Slapi_CondVar structure representing the condition
variable.
If 1, notifies all threads that are waiting on the condition variable.
slapi_wait_condvar()
Functions for Managing Locks and Synchronization
function.
function). Before calling this function, the calling
Chapter 14
Slapi_Mutex
Function Reference
483

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents