blob: 66cab829875daf74156169c8e506c3a555737cc3 [file] [log] [blame]
James Kuszmaul82f6c042021-01-17 11:30:16 -08001/**
2 * @file re_lock.h Interface to locking functions
3 *
4 * Copyright (C) 2010 Creytiv.com
5 */
6
7
8struct lock;
9
10int lock_alloc(struct lock **lp);
11
12void lock_read_get(struct lock *l);
13void lock_write_get(struct lock *l);
14
15int lock_read_try(struct lock *l);
16int lock_write_try(struct lock *l);
17
18void lock_rel(struct lock *l);