Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 534

Table of Contents

Advertisement

Functions for Managing Locks and Synchronization
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:
mutex
Returns
This function returns one of the following values:
A pointer to the new
NULL
534
Netscape Directory Server Plug-In Programmer's Guide • August 2002
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.
Slapi_CondVar
if memory cannot be allocated.
structure. After this
Slapi_Mutex
structure.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents