File: lock.h

package info (click to toggle)
xcache 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,724 kB
  • sloc: ansic: 8,175; php: 4,557; awk: 285; sh: 135; makefile: 75
file content (11 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
typedef struct _xc_lock_t xc_lock_t;

xc_lock_t *xc_fcntl_init(const char *pathname);
void xc_fcntl_destroy(xc_lock_t *lck);
void xc_fcntl_lock(xc_lock_t *lck);
void xc_fcntl_unlock(xc_lock_t *lck);

#define xc_lock_init(name)  xc_fcntl_init(name)
#define xc_lock_destroy(fd) xc_fcntl_destroy(fd)
#define xc_lock(fd)         xc_fcntl_lock(fd)
#define xc_unlock(fd)       xc_fcntl_unlock(fd)