Gordon Sim wrote:
Alan Conway wrote:
Andrew Stitcher wrote:
On Tue, 2007-11-13 at 14:44 -0500, Alan Conway wrote:
Consumer thread ready-to-write wakeup: visits queues that it
consumes from and
- if it finds messages, write until writing would block, then go
back to sleep.
- if there's not enough data to block writing, mark myself as an
"unsatisfied consumer" on all queues of interest. - Any queue
with unsatisfied consumers enables IO wakeups.
Yes this would be a good way to make it work (I think this the general
scheme that Gordon and I have been pushing for a while now). The IO
framework already has a place to hook this into (via a yet-as-unwritten
callback).
Great. So do you or Gordon have plans to implement that in the short
term? If not I can look into it.
Yes, this is (more or less) what I'm working on at present.
Excellent. I'll stay with the heap then.