Last change
on this file since 1366 was
1366,
checked in by Xuefer, 5 years ago
|
fixes #323: refix locking impl for threaded env
|
-
Property svn:eol-style set to
native
|
File size:
546 bytes
|
Line | |
---|
1 | #ifndef XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF |
---|
2 | #define XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF |
---|
3 | |
---|
4 | #if _MSC_VER > 1000 |
---|
5 | #pragma once |
---|
6 | #endif /* _MSC_VER > 1000 */ |
---|
7 | |
---|
8 | #include <stdlib.h> |
---|
9 | |
---|
10 | typedef struct _xc_mutex_t xc_mutex_t; |
---|
11 | |
---|
12 | size_t xc_mutex_size(void); |
---|
13 | xc_mutex_t *xc_mutex_init(xc_mutex_t *shared_mutex, const char *pathname, unsigned char want_inter_process); |
---|
14 | void xc_mutex_destroy(xc_mutex_t *mutex); |
---|
15 | void xc_mutex_lock(xc_mutex_t *mutex); |
---|
16 | void xc_mutex_unlock(xc_mutex_t *mutex); |
---|
17 | |
---|
18 | #endif /* XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF */ |
---|
Note: See
TracBrowser
for help on using the repository browser.