LibHTTP API Reference

December 19, 2016 ยท View on GitHub

httplib_pthread_mutex_destroy( mutex );

Parameters

ParameterTypeDescription
mutexpthread_mutex_tThe key to the mutex to destroy

Return Value

TypeDescription
intInteger value with the result of the function

Description

The platform independent function httplib_pthread_mutex_destroy() destroys a mutex and frees the allocated resources. The function returns 0 if this is successful, or an error code if it fails. If a mutex is locked by another thread the function will return with an error code. On systems which support it, this function is implemented as a wrapper around pthread_mutex_destroy(). On other systems own code is used to emulate the same functionality.

See Also