Posted by Sergei Shelukhin on 07/02/07 22:03
Well, I wonder if I could suggest a fix?
"But it also means only one thread can have the file open at a time."
- the solution for this is implied in one of the posts where I was
still unsure about how it works - a thread could open the file
exclusively, write to it, and then unlock it; reading could be done
without locking the file (if the file is currently locked then there
should be a reasonable/configurable timeout).
E.g. a standard reader-writer lock pattern.
[Back to original message]
|