[Mono-dev] completionPortThreads in threadpool.c not used?

John Hurliman jhurliman at wsu.edu
Sat Mar 31 23:04:19 EDT 2007


I'm writing a UDP client that attempts to detect when there are no more 
available threads in the ThreadPool for doing packet processing with 
Begin/EndReceiveFrom(), and I noticed in 
http://svn.myrealbox.com/viewcvs/trunk/mono/mono/metadata/threadpool.c?rev=73042&view=markup 
that the completionPortThread argument is always set to zero or not used 
in all of the static ThreadPool members. Does Mono handle things 
differently, and how can I find out if there are available threads to 
process additional packets? I was going to ask about the status of 
ThreadPool.SetMaxThreads but it may not be relevant if Mono is not using 
the completionPortThread argument.

John Hurliman
libsecondlife Developer (http://www.libsecondlife.org/)



More information about the Mono-devel-list mailing list