Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 481

Table of Contents

Advertisement

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:
structure from memory. The calling function
Slapi_Mutex
Pointer to a Slapi_Mutex structure representing the mutex
that you want to lock.
structure.
Functions for Managing Locks and Synchronization
structure. After this
Slapi_Mutex
Chapter 14
Function Reference
481

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents