sg_lock_mutex, sg_unlock_mutex - guard not MT-safe system API
Contents
Description
Name
sg_lock_mutex, sg_unlock_mutex - guard not MT-safe system API
Return Values
Both functions return a statgrab error code.
errorcode: SG_ERROR_NONE
description: No error
errorcode: SG_ERROR_INVALID_ARGUMENT
description: Unknown name for mutex
errorcode: SG_ERROR_MUTEX_LOCK
description: thread library error, error code is set with the delivered value
errorcode: SG_ERROR_MUTEX_UNLOCK
description: thread library error, error code is set with the delivered value
See Also
statgrab(3)
Synopsis
#include <statgrab.h>
sg_error sg_lock_mutex (char const *mutex_name);
sg_error sg_unlock_mutex (char const *mutex_name);
Website
⟨https://libstatgrab.org/⟩
libstatgrab 2019-03-08 sg_lock_mutex(3)
