File - locking

- Made locking an integral part of the File object, so that a client
  may now call File::lock multiple times with no effect beyond the first
  call.  This simplifies situations like the 'cal' command that must scan
  for recurrence changes, modify tasks, then optionally run a second
  report, all without locking issues.
This commit is contained in:
Paul Beckingham
2011-08-14 11:54:53 -04:00
parent 1f58856299
commit 9a862bc75a
2 changed files with 20 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ public:
private:
FILE* fh;
int h;
bool locked;
};
#endif