1997-11-06 05:38:25 +08:00
|
|
|
#ifndef USER_LOCKS_H
|
|
|
|
#define USER_LOCKS_H
|
|
|
|
|
1998-08-31 03:37:51 +08:00
|
|
|
int user_lock(unsigned int id1, unsigned int id2, LOCKMODE lockmode);
|
|
|
|
int user_unlock(unsigned int id1, unsigned int id2, LOCKMODE lockmode);
|
1998-02-26 12:46:47 +08:00
|
|
|
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);
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
#endif
|
1998-08-31 03:37:51 +08:00
|
|
|
|
|
|
|
/*
|
1999-06-06 03:09:48 +08:00
|
|
|
* Local Variables:
|
2000-04-13 01:17:23 +08:00
|
|
|
* tab-width: 4
|
|
|
|
* c-indent-level: 4
|
|
|
|
* c-basic-offset: 4
|
1998-08-31 03:37:51 +08:00
|
|
|
* End:
|
|
|
|
*/
|