logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sg_lock_mutex, sg_unlock_mutex - guard not MT-safe system API

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)

See Also