
13 Sep
2009
13 Sep
'09
7:04 a.m.
Hello Belka, Sunday, September 13, 2009, 10:45:35 AM, you wrote:
I used an MVar to signalize to many threads, when it's time to finish their business (I called it a LoopBreaker).
btw, may be you can change the architecture? in particular, where these threads getting their jobs? if they read them from channels (or you may change your code and split it to job producer and job executor communicating via channel), then you may just push EOF job to each queue when party is over -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com