LibHTTP API Reference

December 19, 2016 ยท View on GitHub

httplib_pthread_mutex_unlock( mutex );

Parameters

ParameterTypeDescription
mutexpthread_mutex_tThe key to the mutex to unlock

Return Value

TypeDescription
intInteger value with the result of the function

Description

The platform independent function httplib_pthread_mutex_unlock() is used to remove a lock on a mutex after processing a critical section is finished. The function returns 0 when successful, or a non zero value with error number if something went wrong. On systems which support it, this function is implemented as a direct call to pthread_mutex_unlock(). For other systems an equivalent functionality has been coded in own code.

See Also