Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
sg_lock_mutex(3)						sg_lock_mutex(3)

NAME
     sg_lock_mutex, sg_unlock_mutex - guard not MT-safe system API

SYNOPSIS
     #include <statgrab.h>

     sg_error sg_lock_mutex (char const *mutex_name);

     sg_error sg_unlock_mutex (char const *mutex_name);

DESCRIPTION
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
     <https://libstatgrab.org/>

libstatgrab			   2019-03-08			sg_lock_mutex(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=sg_lock_mutex&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help