Re: PR_Write blocks indefinitely

"Wan-Teh Chang" <[email protected]> Tue, 28 Oct 2008 07:25:11 -0700
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On Tue, Oct 28, 2008 at 3:01 AM, Monkeon <[email protected]> wrote:
>
> Hi,
>
> I believe we are using the win95 version.  However, we will build the
> libraries again ourselves to confirm these two points.  If we are running
> the win95 version, should NSPR_NATIVE_THREADS_ONLY still be set to 1?

The NSPR_NATIVE_THREADS_ONLY environment variable is only
effective in the WINNT configuration.  If you are using the WIN95
configuration, NSPR_NATIVE_THREADS_ONLY is ignored.

If your threads only call NSPR I/O functions such as PR_Poll and
PR_Write as you described, you don't need to worry about the
fiber deadlock problem that Julien mentioned.  That problem occurs
only when a fiber calls a native Win32 function that blocks the
underlying native thread, such as the Winsock functions select()
and send().  If a fiber calls NSPR I/O functions such as PR_Poll
and PR_Write, only the fiber is blocked.

Wan-Teh