Bug Workaround - locking

- Added support for the "locking" configuration variable that disables
  file locking.  This can be helpful to folks who use task on Solaris,
  and store their task data files on an NFS mount.
This commit is contained in:
Paul Beckingham 2009-03-10 15:21:29 -04:00
parent dc946e175e
commit d174bb1143
8 changed files with 58 additions and 15 deletions

View file

@ -51,6 +51,8 @@ public:
int gc ();
int nextId ();
void noLock ();
private:
bool lock (FILE*) const;
bool overwritePending (std::vector <T>&);
@ -62,6 +64,7 @@ private:
std::string mPendingFile;
std::string mCompletedFile;
int mId;
bool mNoLock;
};
#endif