[Patches] [ python-Patches-525532 ] Add support for POSIX semaphores

noreply@sourceforge.net noreply@sourceforge.net
Sun, 17 Mar 2002 01:54:37 -0800


Patches item #525532, was opened at 2002-03-04 15:50
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=525532&group_id=5470

Category: Core (C code)
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Gerald S. Williams (gsw_agere)
Assigned to: Martin v. Löwis (loewis)
Summary: Add support for POSIX semaphores

Initial Comment:
thread_pthread.h can be modified to use POSIX 
semaphores if available. This is more efficient than 
emulating them with mutexes and condition variables, 
and at least one platform that supports POSIX 
semaphores has a race condition in its condition 
variable support.

The new file would still be supporting POSIX threads, 
although from both <pthread.h> and <semaphore.h>, so 
perhaps ought to be renamed if this patch is accepted.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-03-17 10:54

Message:
Logged In: YES 
user_id=21627

Thanks for the patch; committed as thread_pthread.h 2.39.

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

Comment By: Tim Peters (tim_one)
Date: 2002-03-16 18:36

Message:
Logged In: YES 
user_id=31435

Changed Group to 2.3.

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

Comment By: Michael Hudson (mwh)
Date: 2002-03-16 17:42

Message:
Logged In: YES 
user_id=6656

Does this belong in the 2.2.x group?

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

Comment By: Tim Peters (tim_one)
Date: 2002-03-15 09:54

Message:
Logged In: YES 
user_id=31435

Can someone on a pthreads platform please continue with 
this?  I'm +1 on it via eyeballing.

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

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