1sg_lock_mutex(3)                                              sg_lock_mutex(3)
2
3
4

NAME

6       sg_lock_mutex, sg_unlock_mutex - guard not MT-safe system API
7

SYNOPSIS

9       #include <statgrab.h>
10
11
12       sg_error sg_lock_mutex (char const *mutex_name);
13
14       sg_error sg_unlock_mutex (char const *mutex_name);
15

DESCRIPTION

RETURN VALUES

18       Both functions return a statgrab error code.
19
20       error code: SG_ERROR_NONE
21       description: No error
22
23       error code: SG_ERROR_INVALID_ARGUMENT
24       description: Unknown name for mutex
25
26       error code: SG_ERROR_MUTEX_LOCK
27       description: thread library error, error code is set with the delivered
28       value
29
30       error code: SG_ERROR_MUTEX_UNLOCK
31       description: thread library error, error code is set with the delivered
32       value
33

SEE ALSO

35       statgrab(3)
36

WEBSITE

38https://libstatgrab.org/
39
40
41
42libstatgrab                       2019-03-08                  sg_lock_mutex(3)
Impressum