source: git/xcache/xc_mutex.h @ bfc37a3

3.0
Last change on this file since bfc37a3 was bfc37a3, checked in by Xuefer <xuefer@…>, 6 years ago

cacher: merge [1366] from trunk; fixes #323: refix locking impl for threaded env

git-svn-id: svn://svn.lighttpd.net/xcache/branches/3.0@1367 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100644
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
10typedef struct _xc_mutex_t xc_mutex_t;
11
12size_t xc_mutex_size(void);
13xc_mutex_t *xc_mutex_init(xc_mutex_t *shared_mutex, const char *pathname, unsigned char want_inter_process);
14void xc_mutex_destroy(xc_mutex_t *mutex);
15void xc_mutex_lock(xc_mutex_t *mutex);
16void xc_mutex_unlock(xc_mutex_t *mutex);
17
18#endif /* XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF */
Note: See TracBrowser for help on using the repository browser.