File: re_lock.h

package info (click to toggle)
libre 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,556 kB
  • sloc: ansic: 41,621; makefile: 143; sh: 1
file content (18 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * @file re_lock.h  Interface to locking functions
 *
 * Copyright (C) 2010 Creytiv.com
 */


struct lock;

int  lock_alloc(struct lock **lp);

void lock_read_get(struct lock *l);
void lock_write_get(struct lock *l);

int  lock_read_try(struct lock *l);
int  lock_write_try(struct lock *l);

void lock_rel(struct lock *l);