Re: JoinAll?
From: David Browne (meat_at_hotmail.com)
Date: 04/29/04
- Next message: Donal McWeeney: "Collection of Enum with additional properties"
- Previous message: Newbie: "Re: datatable"
- In reply to: TT (Tom Tempelaere): "JoinAll?"
- Next in thread: David Browne: "Re: JoinAll?"
- Reply: David Browne: "Re: JoinAll?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 09:16:27 -0500
"TT (Tom Tempelaere)" <_N_0SPA|/\|titi____@hotmail.com|/\|APS0_N_> wrote in
message news:7731518E-F84F-4571-9A38-F80B8EB6B322@microsoft.com...
> Hi,
>
> Is there a method in .NET framework that allows me to wait on several
threads? (I think there isn't). Similar to WaitHandle.WaitAll, but for
waiting threads to finish. I expected such a method as a static helper
method in class System.Threading.Thread:
>
> public static bool JoinAll( System.Threading.Thread[] threads );
>
> Would such a method be useful to other people than me? Opinions?
>
You can just join each thread in turn.
foreach (Thread t in threads)
{
t.wait();
}
David
- Next message: Donal McWeeney: "Collection of Enum with additional properties"
- Previous message: Newbie: "Re: datatable"
- In reply to: TT (Tom Tempelaere): "JoinAll?"
- Next in thread: David Browne: "Re: JoinAll?"
- Reply: David Browne: "Re: JoinAll?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|