Slapi_Unlock_Mutex() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Managing Locks and Synchronization
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
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
546
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Pointer to an Slapi_CondVar structure representing the condition
variable.
If 1, notifies all threads that are waiting on the condition variable.
if an error occurs; for example, if the condition variable is
slapi_wait_condvar()
Pointer to an Slapi_Mutex structure representing the mutex
that you want to unlock.
function). Before calling this function, the calling
or if the
NULL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents