Re: How do I know when my work threads have completed their tasks?
- From: "Christof Nordiek" <cn@xxxxxxxxx>
- Date: Fri, 26 Jan 2007 17:54:10 +0100
Hi Pucca,
the WaitCallBack-handler (PopulateContextTable e.g.) should signal that at
the and, maybe in a finally block. If this is called from a GUI-Thread you
could call BeginInvoke on one of the Forms methods.
Christof
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:E805594F-654D-4932-A062-01962A077D10@xxxxxxxxxxxxxxxx
Hi, I'm using vs2005 and .net 2.0. I started 2 threadpool threads. How
do I
know when they're done with their tasks? Thanks.
ThreadPool.QueueUserWorkItem(new WaitCallback(PopulateContextTable));
ThreadPool.QueueUserWorkItem(new WaitCallback(PopulatAdTable));
--
Thanks.
.
- Prev by Date: Re: Use of unassigned local variable?
- Next by Date: C# inheritance broken?
- Previous by thread: Re: Use of unassigned local variable?
- Next by thread: Re: How do I know when my work threads have completed their tasks?
- Index(es):