[Haskell-cafe] Re: TChan implementation: Why TVarList
joelr1 at gmail.com
Tue Dec 6 06:46:24 EST 2005
Well, I meant more like TVar [a] but I see that you are pulling from
the front and appending to the rear.
I need to implement a mailbox where messages can be pulled out based
on a predicate or in order of arrival. I'm thinking of using a Map
keyed on ClockTime.
Do you have any suggestions?
On Dec 6, 2005, at 11:31 AM, Simon Peyton-Jones wrote:
> The mutable cell is in the tail. A [TVar a] would be quite different.
> You can read about a very similar impl (based on MVars) in the
> "Concurrent Haskell" paper (on my papers page)
More information about the Haskell-Cafe