1997-11-05 22:38:25 +01:00
|
|
|
#ifndef USER_LOCKS_H
|
|
|
|
#define USER_LOCKS_H
|
|
|
|
|
2006-07-11 00:06:11 +02:00
|
|
|
#include "storage/lock.h"
|
|
|
|
|
2005-04-30 00:28:24 +02:00
|
|
|
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);
|
1998-08-30 21:37:51 +02:00
|
|
|
|
2005-04-30 00:28:24 +02:00
|
|
|
#endif
|