
31 Jan
2003
31 Jan
'03
1:16 p.m.
ps If you are contemplating significant changes to the concurrency code, there's a minor issue which it would be nice to fix while in there. At present, there are separate thread queues for 'main' and for each invocation of 'unsafePerformIO'. This means that any threads spawned while running in 'unsafePerformIO' must complete (or block) before unsafePerformIO returns and any runnable threads spawned 'outside' the unsafePerformIO will not be scheduled until the unsafePerformIO completes. I think that it would be better to have a single queue of runnable threads. -- Alastair