Slapi_New_Mutex(); Slapi_Notify_Condvar() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

A pointer to the new
NULL
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
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.
Slapi_CondVar
if memory cannot be allocated.
structure. You can create the
function.
function to free the structure from memory.
Slapi_Mutex
if memory cannot be allocated.
slapi_destroy_mutex()
Functions for Managing Locks and Synchronization
structure.
Slapi_Mutex
slapi_wait_condvar()
slapi_notify_condvar()
Slapi_CondVar
structure.
slapi_pblock_destroy()
slapi_unlock_mutex()
function.
structure by calling the
function. To
function.
structure, call the
Slapi_Mutex
Slapi_Mutex
function.
Slapi_Mutex
Chapter 15
Function Reference
545

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents