
2 Feb
2011
2 Feb
'11
5:02 p.m.
On Wed, Feb 2, 2011 at 10:42 PM, Warren Harris
Interesting. I hadn't thought of this solution. You're forking the timer to yet a third thread so that if it continues waiting beyond the checkpoint thread shutdown it doesn't really matter. I guess that works as long as the main thread doesn't wait for all other threads to terminate before terminating the app.
It still seems to me that haskell is lacking when it comes to operations that can wait for multiple conditions.
I think we can make waiting for both I/O activity and timers at the same time using the I/O manager. I will need to do this for my planned timeout support in the network package. Johan