![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 534](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642534.webp)
Functions for Managing Locks and Synchronization
534
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Syntax
#include “slapi-plugin.h”
void slapi_lock_mutex( Slapi_Mutex *mutex );
Parameters
This function takes the following parameters:
Description
This function locks the mutex specified by the
Slapi_Mutex
structure. After this
function returns, any other thread that attempts to acquire the same lock blocks
until the holder of the lock releases the lock. Acquiring the lock is not an
interruptible operation, nor is there any time-out mechanism.
slapi_new_condvar()
Creates a new condition variable and returns a pointer to the corresponding
Slapi_CondVar
structure.
Syntax
#include “slapi-plugin.h”
Slapi_CondVar *slapi_new_condvar( Slapi_Mutex *mutex );
Parameters
This function takes the following parameters:
Returns
This function returns one of the following values:
•
A pointer to the new
Slapi_CondVar
structure.
•
NULL
if memory cannot be allocated.
mutex
Pointer to a
Slapi_Mutex
structure representing the mutex
that you want to lock.
mutex
Pointer to an
Slapi_Mutex
structure representing the mutex
that you want used to protect this condition variable.
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...