Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 484

Table of Contents

Advertisement

Functions for Managing Locks and Synchronization
Parameters
This function takes the following parameters:
mutex
Returns
This function returns one of the following values:
A non-zero value if the mutex was successfully unlocked.
0 if the mutex was NULL or was not locked by the calling thread.
Description
This function unlocks the mutex specified by the
slapi_wait_condvar()
Waits on a condition variable.
Syntax
#include "slapi-plugin.h"
int slapi_wait_condvar( Slapi_CondVar *cvar,
struct timeval *timeout );
Parameters
This function takes the following parameters:
cvar
timeout
Returns
This function returns one of the following values:
A non-zero value if successful.
484
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Pointer to an Slapi_Mutex structure representing the mutex
that you want to unlock.
Pointer to an Slapi_CondVar structure representing the
condition variable that you want to wait on.
Time period to wait for notification on the condition variable. If
NULL, the calling function blocks indefinitely.
structure.
Slapi_Mutex

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents