Re: Windows helper threads

wtc <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
[email protected] wrote:
> Hi, the guy I'm working is certain he's figured this out before, but
> now he can't remember how.
> 
> When we use nspr on Windows XP, in the Visual Studio Output window we
> can see threads rapidly being created and exited.  My colleague thinks
> that IO operations are happening in child threads, and that there's an
> option for changing that behavior.  Would you guys know how this would
> be done? and if it is unadvisable?

Kevin,

Sorry about the late reply.  I didn't know I forgot to reply
until I saw Nelson's reply.

What you saw shows that you are using the WINNT configuration,
which is the default configuration when you build NSPR on Windows.
Unfortunately the WINNT configuration is inapproriate for most
applications.  It is the default for historical reasons.

To eliminate these helper threads, you can create your threads
as PR_GLOBAL_THREADS.

But I recommend that you build NSPR with the WIN95 configuration.
Simply pass the --enable-win32-target=WIN95 option to NSPR's
configure script.  This will change the DLLs' names to
nspr4.dll, plc4.dll, and plds4.dll, without the "lib" prefix.

Wan-Teh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.