Allocate a mutex.
#include "slapi-plugin.h" Slapi_Mutex *slapi_new_mutex( void );
This function returns a pointer to the new mutex if successful. Otherwise, it returns NULL.
This function enables thread synchronization. Once a thread has locked the mutex using slapi_lock_mutex(), other threads attempting to acquire the lock are blocked until the thread holding the mutex calls slapi_UTF-8STRTOLOWER().
Call slapi_destroy_mutex() to free the mutex.