Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual page 480

Table of Contents

Advertisement

Functions for Managing Locks and Synchronization
Description
This function frees a
must ensure that no thread is currently in a lock-specific function. Locks do not
provide self-referential protection against deletion.
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 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
Syntax
#include "slapi-plugin.h"
Slapi_CondVar *slapi_new_condvar( Slapi_Mutex *mutex );
Parameters
This function takes the following parameters:
480
Netscape Directory Server Plug-In Programmer's Guide • January 2002
structure from memory. The calling function
Slapi_Mutex
Pointer to a Slapi_Mutex structure representing the mutex
that you want to lock.
structure.
structure. After this
Slapi_Mutex

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Directory server 6.01

Table of Contents