Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 535

Table of Contents

Advertisement

Description
This function creates a new condition variable and returns a pointer to the
Slapi_CondVar
slapi_new_mutex()
To wait on the condition variable, call the slapi_wait_condvar() function. To notify
waiting threads, call the
When you are done working with this
slapi_destroy_condvar()
slapi_new_mutex()
Creates a new mutex and returns a pointer to the corresponding
structure.
Syntax
#include "slapi-plugin.h"
Slapi_Mutex *slapi_new_mutex();
Returns
This function returns one of the following values:
A pointer to the new
NULL
Description
This function creates a new mutex and returns a pointer to the
structure. You can lock this mutex by calling the
function and unlock the mutex by calling the
When you are done working with the mutex, you can free the
structure by calling the
slapi_notify_condvar()
Notifies a thread that is waiting on the specified condition variable.
Syntax
#include "slapi-plugin.h"
int slapi_notify_condvar( Slapi_CondVar *cvar, int notify_all );
structure. You can create the
function.
slapi_notify_condvar()
function to free the structure from memory.
Slapi_Mutex
if memory cannot be allocated.
slapi_destroy_mutex()
Functions for Managing Locks and Synchronization
structure by calling the
Slapi_Mutex
function.
structure, call the
Slapi_CondVar
structure.
slapi_pblock_destroy()
slapi_unlock_mutex()
function.
Chapter 15
Slapi_Mutex
Slapi_Mutex
function.
Slapi_Mutex
Function Reference
535

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents