source: trunk/xcache/xc_mutex.h

Last change on this file was 1366, checked in by moo, 15 months 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
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.