re/include/re_lock.h
Alfred E. Heggestad 6648fd2393 update splash
2010-11-03 11:34:14 +00:00

18 lines
327 B
C

/**
* @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);