source: git/xcache/xc_lock.h @ c67d47e

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

finished improve stability on threaded env

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1204 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

  • Property mode set to 100644
File size: 520 bytes
Line 
1#ifndef XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF
2#define XC_LOCK_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_lock_t xc_lock_t;
11
12size_t xc_lock_size(void);
13xc_lock_t *xc_lock_init(xc_lock_t *lck, const char *pathname, unsigned char interprocess /* only with ZTS */);
14void xc_lock_destroy(xc_lock_t *lck);
15void xc_lock(xc_lock_t *lck);
16void xc_unlock(xc_lock_t *lck);
17
18#endif /* XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF */
Note: See TracBrowser for help on using the repository browser.