Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 536

Table of Contents

Advertisement

Functions for Managing Locks and Synchronization
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 );
Parameters
This function takes the following parameters:
mutex
Returns
This function returns one of the following values:
A non-zero value if the mutex was successfully unlocked.
536
Netscape Directory Server Plug-In Programmer's Guide • December 2003
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()
Pointer to an Slapi_Mutex structure representing the mutex
that you want to unlock.
function). Before calling this function, the calling

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents