
6 Jan
2008
6 Jan
'08
6:45 a.m.
Andrew Coppin
2. I have a situation where I have a thread generating some data and putting it into a mutable array, and another thread trying to read that data. Is there a way I can make the reader thread block if it tries to read a cell that hasn't been computed yet, but not introduce too much overhead for cells that have been filled in?
This http://www.haskell.org/ghc/docs/latest/html/libraries/stm/Control-Concurrent... could be what you're looking for. -- (c) this sig last receiving data processing entity. Inspect headers for past copyright information. All rights reserved. Unauthorised copying, hiring, renting, public performance and/or broadcasting of this signature prohibited.