[Patches] [ python-Patches-460269 ] Improve threading on Solaris platform.

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Sep 2001 06:30:23 -0700


Patches item #460269, was opened at 2001-09-10 06:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=460269&group_id=5470

Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve threading on Solaris platform.

Initial Comment:
To have threading working 'as expected' (i.e. threads
that are preempted by the OS and NOT threads that need
to have explicit yields), they need to have the
'SYSTEM_SCOPE' attribute set at thread creation on the
Solaris platform (at least on SPARC, did not check on
x86).

This patch adds :
 - a configure check to see if threads can be created
with this attribute without returning an error
 - the setting of this attribute in the 'standard' case
(all draft versions are ignored).

This patch NEEDS to be tested on more than one Unices
using POSIX threads to be sure that it does not break
anything (I only tested it on Solaris).

The configure check is a bit awkward as I wanted to
actually run some threading programs, so I needed to
have all the parameters (CC and LIBS) set properly.
Maybe a better way could be found.

The attached patch is against version 2.2.a3.

Should a patch also be sent for 2.0 or 2.1 releases as
a bug fix ?

(see comp.langage.python discussion for more details)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=460269&group_id=5470