nckernel
0.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
slibc
include
pthread_mutex.h
Go to the documentation of this file.
1
12
struct
pthread_mutex
{
13
volatile
int
lock
;
14
void
*
owner
;
15
volatile
int
refcnt
;
16
};
17
18
struct
pthread_mutexattr
{
19
};
20
21
typedef
struct
pthread_mutex
pthread_mutex_t
;
22
typedef
struct
pthread_mutexattr
pthread_mutexattr_t
;
23
24
#define PTHREAD_MUTEX_INITIALIZER { 0, (void *)NULL }
25
32
extern
int
pthread_mutex_destroy
(
pthread_mutex_t
*mutex);
33
41
extern
int
pthread_mutex_init
(
pthread_mutex_t
*mutex,
42
const
pthread_mutexattr_t
*attr);
43
49
extern
int
pthread_mutex_lock
(
pthread_mutex_t
*mutex);
50
56
extern
int
pthread_mutex_trylock
(
pthread_mutex_t
*mutex);
57
63
extern
int
pthread_mutex_unlock
(
pthread_mutex_t
*mutex);
64
Generated on Thu Nov 7 2013 02:45:25 for nckernel by
1.8.4