14.27. Slapi_Mutex

Represents a mutually exclusive lock in the server plug-in.
Syntax

 

#include "slapi-plugin.h" 
typedef struct slapi_mutex Slapi_Mutex;
Description

Slapi_Mutex is the data type for an opaque structure that represents a mutual exclusive lock (mutex) in the server plug-in.

The following table summarizes the front-end API functions that you can call to work with mutually exclusive locks.
To ... ... Call this function
Destroy a mutex. slapi_destroy_mutex()
Lock a mutex. slapi_lock_mutex()
Create a new mutex. slapi_new_mutex()
Unlock a mutes. slapi_unlock_mutex()