comparison Python/thread_pthread.h @ 65205:ed5e598da150

Issue #10062: Allow building on platforms which do not have sem_timedwait.
author Antoine Pitrou <solipsis@pitrou.net>
date Sun, 10 Oct 2010 08:37:22 +0000
parents 8e428b8e7d81
children b750c45a772c
comparison
equal deleted inserted replaced
65202:51d304ec6c11 65205:ed5e598da150
62 62
63 63
64 /* Whether or not to use semaphores directly rather than emulating them with 64 /* Whether or not to use semaphores directly rather than emulating them with
65 * mutexes and condition variables: 65 * mutexes and condition variables:
66 */ 66 */
67 #if defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES) 67 #if (defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES) && \
68 defined(HAVE_SEM_TIMEDWAIT))
68 # define USE_SEMAPHORES 69 # define USE_SEMAPHORES
69 #else 70 #else
70 # undef USE_SEMAPHORES 71 # undef USE_SEMAPHORES
71 #endif 72 #endif
72 73