![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 536](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642536.webp)
Functions for Managing Locks and Synchronization
536
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Parameters
This function takes the following parameters:
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
slapi_wait_condvar()
function). Before calling this function, the calling
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:
Returns
This function returns one of the following values:
•
A non-zero value if the mutex was successfully unlocked.
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.
mutex
Pointer to an
Slapi_Mutex
structure representing the mutex
that you want to unlock.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...