Re: ThreadPool wait for threads to finish
- From: "Peter Kirk" <pk@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 09:36:40 +0200
"Howard Swope" <howardsnewsATspitzincDOTcom> skrev i en meddelelse
news:u5fzh3KfFHA.352@xxxxxxxxxxxxxxxxxxxxxxx
>I needed to do the same thing and came up with the following solution. I
>don't know how effective it is in all cases, but it worked in my situation.
> private static AutoResetEvent AllThreadsDone = new
> AutoResetEvent(false);
>
> public static bool WaitForThreadPoolIdle(int timeout)
<cut>
Hi, thanks for the suggestion. I have gone the "counting semaphore" route. I
just thought the thread-pool might offer an in-built wait-method or
something for that functionality.
Peter
.
- References:
- ThreadPool wait for threads to finish
- From: Peter Kirk
- Re: ThreadPool wait for threads to finish
- From: Howard Swope
- ThreadPool wait for threads to finish
- Prev by Date: DataGrid data refresh
- Next by Date: Re: rules engine ideas? Trying to prevent tons of conditional branches in a logic filter.
- Previous by thread: Re: ThreadPool wait for threads to finish
- Next by thread: Re: ThreadPool wait for threads to finish
- Index(es):
Relevant Pages
|