Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_notify_condvar()

Notify a change in a condition variable.

Syntax

#include "slapi-plugin.h"
int slapi_notify_condvar( Slapi_CondVar *cvar, int notify_all );

Parameters

This function takes the following parameter:

cvar

Condition variable changed

notify_all

NULL means notify only the next thread waiting for notification. Otherwise, all threads are notified.

Description

This function enables thread synchronization using a wait/notify mechanism.

Returns

This function returns 1 if successful. Otherwise, it returns NULL.

Memory Considerations

Call slapi_wait_condvar() to wait on a change to the condition variable.

See Also

slapi_destroy_condvar()

slapi_new_condvar()

slapi_wait_condvar()