Mercurial > noffle
diff src/lock.h @ 127:3c71e28c8eef noffle
[svn] Release-1-0 mergedocs/NOTES
author | bears |
---|---|
date | Tue, 25 Jul 2000 13:14:54 +0100 |
parents | 32ba1198c6fa |
children | 8ea6b5ddc5a5 |
line wrap: on
line diff
--- a/src/lock.h Tue Jul 25 13:12:50 2000 +0100 +++ b/src/lock.h Tue Jul 25 13:14:54 2000 +0100 @@ -5,7 +5,7 @@ articla database, groups database, outgoing articles database, requests database. Handles global lock. - $Id: lock.h 51 2000-05-05 23:49:38Z uh1763 $ + $Id: lock.h 183 2000-07-25 12:14:54Z bears $ */ #ifndef LOCK_H @@ -17,6 +17,8 @@ #include "common.h" +enum LockRequestWait { LOCK_WAIT, LOCK_NOWAIT }; + /* Open all databases and set global lock. */ Bool Lock_openDatabases( void ); @@ -25,4 +27,20 @@ void Lock_closeDatabases( void ); +/* Check the global lock held. */ +Bool +Lock_gotLock( void ); + +/* Get fetch lock. */ +Bool +Lock_getFetchLock( enum LockRequestWait wait ); + +/* Release fetch lock. */ +void +Lock_releaseFetchLock( void ); + +/* Check the fetch lock held. */ +Bool +Lock_fetchLock( void ); + #endif