Functions for Managing Locks and Synchronization
slapi_lock_mutex()
Locks the specified mutex.
Syntax
#include "slapi-plugin.h"
void slapi_lock_mutex( Slapi_Mutex *mutex );
Parameters
This function takes the following parameters:
mutex
Description
This function locks the mutex specified by the
function returns, any other thread that attempts to acquire the same lock is
blocked 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
Syntax
#include "slapi-plugin.h"
Slapi_CondVar *slapi_new_condvar( Slapi_Mutex *mutex );
Parameters
This function takes the following parameters:
mutex
Returns
This function returns one of the following values:
544
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Pointer to a Slapi_Mutex structure representing the mutex
that you want to lock.
structure.
Pointer to an Slapi_Mutex structure representing the mutex
that you want used to protect this condition variable.
structure. After this
Slapi_Mutex
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers