|
Boost : |
From: Roland (roland.schwarz_at_[hidden])
Date: 2004-07-28 07:22:25
On Wed, 28 Jul 2004 13:38:10 +0200 Bronek Kozicki <brok_at_[hidden]> wrote:
> Bronek Kozicki wrote:
> > Roland wrote:
> >> This would increase the number of threads seriously, since you can
> >> only wait for a very limited number of objects in a call to WaitFor.
> >
> > Agh ... it took me some time to see your point. Yes, RegisterWaitFor..
> > internally uses WaitForMultipleObjects (actally it's little more
> > complicated), which is limited to 64 handles on my version of Windows.
>
> however, "new wait threads are created automatically when required."
> (http://msdn.microsoft.com/library/en-us/dllproc/base/registerwaitforsin
> gleobject.asp ) . Thus number of calls to RegisterForWait... function is
> not limited by capacity of WaitForMultipleObjects.
>
Unfortunately that still does not account for the requirement to call the TlsFree
in the context of the thread.
Roland
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk