Message39334
Logged In: YES
user_id=329402
Before _POSIX_SEMAPHORES is specified by default for
Cygwin, it will probably have to be shown that it is 100%
compliant with POSIX. Whether or not this is the case, the
POSIX semaphore implementation is the one that should be
used for Cygwin (it has been verified and approved by the
Cygwin Python maintainer, etc.).
Prior to this, threading had been disabled for Cygwin
Python, so this is really more of a port-to-Cygwin than a
workaround. This could have been implemented in a new file
(thread_cygwin.h), although during implementation it was
discovered that the change for Cygwin would also benefit
POSIX semaphore users in general.
The threading module overall is highly platform-specific,
especially with regard to redefining POSIX symbols for
specific platforms. In particular, this is done for the
following platforms:
__DGUX
__sgi
__ksr__
anything using SOLARIS_THREADS
__MWERKS__
However, except for those using SOLARIS_THREADS, these are
specified in thread.c. I will therefore resubmit the patch
as a change to thread.c instead.
The reference to __rtems__ actually comes from newlib,
which Cygwin uses. It doesn't apply to Cygwin. |
|
Date |
User |
Action |
Args |
2007-08-23 15:11:47 | admin | link | issue533681 messages |
2007-08-23 15:11:47 | admin | create | |
|