Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_lock_mutex()

Lock a mutex.

Syntax

#include "slapi-plugin.h"
void slapi_lock_mutex( Slapi_Mutex *mutex );

Parameters

This function takes the following parameters:

mutex

Mutex for thread synchronization

Description

This function allows thread synchronization. Once a thread has locked a mutex using this function, other threads attempting to acquire the lock are blocked until the thread holding the mutex calls slapi_unlock_mutex().

See Also

slapi_destroy_mutex()

slapi_new_mutex()

slapi_UTF-8STRTOLOWER()