aboutsummaryrefslogtreecommitdiff
path: root/contrib/userlock/user_locks.h
blob: f7cdc89a099ef6d3f2d8637a4929bceeba41e70f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef USER_LOCKS_H
#define USER_LOCKS_H

#include "storage/lock.h"

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

#endif