Re: How do I know when my work threads have completed their tasks?



Pucca wrote:

I'm using threadpool so I used AutoeventReset and it worked. Thank you very
much.

Be careful: many uses of AutoResetEvent have a race condition, where the
event is signaled before anything waits on it, thus causing deadlock
when threads do start waiting on it, having "missed the bus", as it
were.

-- Barry

--
http://barrkel.blogspot.com/
.