
15 May
2005
15 May
'05
8:07 a.m.
Bulat Ziganshin writes:
one thread gives to another handle of open file. i need to read some data from this file. how can i accomplish this?
Keep the Handle in an MVar at all times, then access to it will be synchronized between threads: http://haskell.org/ghc/docs/latest/html/libraries/base/Control.Concurrent.MV... If you need more background on this stuff, this paper is the one you want to read: http://research.microsoft.com/Users/simonpj/papers/marktoberdorf/ Peter