summaryrefslogtreecommitdiff
path: root/contrib/userlock/user_locks.h
blob: 0a8f55cbdd8001746a72df5d0c443b42eb42f686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef USER_LOCKS_H
#define USER_LOCKS_H

int			user_lock(unsigned int id1, unsigned int id2, LOCKMODE lockmode);
int			user_unlock(unsigned int id1, unsigned int id2, LOCKMODE lockmode);
int			user_write_lock(unsigned int id1, unsigned int id2);
int			user_write_unlock(unsigned int id1, unsigned int id2);
int			user_write_lock_oid(Oid oid);
int			user_write_unlock_oid(Oid oid);
int			user_unlock_all(void);

#endif

/*
 * Local variables:
 *  tab-width: 4
 *  c-indent-level: 4
 *  c-basic-offset: 4
 * End:
 */