Guard not mt-safe system api
\*(T<#include <statgrab.h>\*(T>
\*(T<sg_error sg_lock_mutex\*(T> \kx \*(T<(char const *mutex_name);\*(T>
\*(T<sg_error sg_unlock_mutex\*(T> \kx \*(T<(char const *mutex_name);\*(T>
Both functions return a statgrab error code.
error code: SG_ERROR_NONE
description: No error
error code: SG_ERROR_INVALID_ARGUMENT
description: Unknown name for mutex
error code: SG_ERROR_MUTEX_LOCK
description: thread library error, error code is set with the delivered value
error code: SG_ERROR_MUTEX_UNLOCK
description: thread library error, error code is set with the delivered value
statgrab(3)
\(lahttp://www.i-scream.org/libstatgrab/\(ra