Mercurial > hg > svcore
comparison data/fileio/FileReadThread.h @ 455:3e0f1f7bec85
* Fix a nasty and long-standing race condition in MatrixFile's use of
FileReadThread that was causing crashes sometimes
author | Chris Cannam |
---|---|
date | Thu, 09 Oct 2008 20:10:28 +0000 |
parents | 4b2ea82fd0ed |
children | c01cbe41aeb5 |
comparison
equal
deleted
inserted
replaced
454:ba7aaacb7211 | 455:3e0f1f7bec85 |
---|---|
48 virtual int request(const Request &request); | 48 virtual int request(const Request &request); |
49 virtual void cancel(int token); | 49 virtual void cancel(int token); |
50 | 50 |
51 virtual bool isReady(int token); | 51 virtual bool isReady(int token); |
52 virtual bool isCancelled(int token); // and safe to delete | 52 virtual bool isCancelled(int token); // and safe to delete |
53 virtual bool haveRequest(int token); | |
53 virtual bool getRequest(int token, Request &request); | 54 virtual bool getRequest(int token, Request &request); |
54 virtual void done(int token); | 55 virtual void done(int token); |
55 | 56 |
56 protected: | 57 protected: |
57 int m_nextToken; | 58 int m_nextToken; |