sg_lock_mutex man page

sg_lock_mutex, sg_unlock_mutex — guard not MT-safe system API

Synopsis

#include <statgrab.h>

sg_errorsg_lock_mutex (char const *mutex_name);

sg_errorsg_unlock_mutex (char const *mutex_name);

Return Values

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

See Also

statgrab(3)

Website

http://www.i-scream.org/libstatgrab/

Referenced By

sg_unlock_mutex(3) is an alias of sg_lock_mutex(3).

2013-06-07 i-scream