source: svn/trunk/xcache/xc_mutex.h

Last change on this file 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
[1366]1#ifndef XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF
2#define XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF
4#if _MSC_VER > 1000
5#pragma once
[1044]6#endif /* _MSC_VER > 1000 */
[1204]8#include <stdlib.h>
[1366]10typedef struct _xc_mutex_t xc_mutex_t;
[1366]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);
[1366]18#endif /* XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF */
Note: See TracBrowser for help on using the repository browser.