Re: ThreadPool wait for threads to finish

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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


.



Relevant Pages

  • Re: Will hiding Userform resume code?
    ... Thank you, Peter. ... > Dim frmMFFN As frmModifyFFName ... > These are both custom properties I've added to the form. ... > It allows the functionality to be in the Form rather than outside it. ...
    (microsoft.public.word.vba.general)
  • Re: 2 Research Machines Nimbus (386) MCA on eBay UK
    ... You might have Peter.. ... You only need a boot-ROM to get the remote boot functionality - and a server which holds the OS then to boot from. ... They are from the same timeline as the 55SX and back then the CTRL+ALT+INS (plus reference partition) was fairly uncommon even to the IBMs. ... It might be possible that "the trivial functions" like setting serial / parallel interface and such are set by a "bios key" but I truely doubt that. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: RENAME/QUEUE ?
    ... >> Is it really such a big problem to create such a functionality? ... Peter "EPLAN" LANGSTOEGER ...
    (comp.os.vms)
  • Re: Userform - On movement leaves a trail.
    ... Works great Peter, Thanks for your advice. ... interface, eg writing to cells. ... works usings 2 different userforms ... Ist functionality> Input record ...
    (microsoft.public.excel.programming)
  • Re: Using Microsoft Photo Editor with Windows XP Pro / Office 2003
    ... Is there any way to install it on my ... > Appreciate any guidance. ... Prev by Date: ...
    (microsoft.public.office.misc)