45.7. slapi_unlock_mutex()

Description

This function unlocks the mutex specified by the Slapi_Mutex structure.

Syntax

#include "slapi-plugin.h"
int slapi_unlock_mutex( Slapi_Mutex *mutex );

Parameters

This function takes the following parameters:

mutex
Pointer to an Slapi_Mutex structure representing the mutex that you want to unlock.
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.