Changeset 391 for python/trunk/Modules/_multiprocessing/multiprocessing.h
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Modules/_multiprocessing/multiprocessing.h
r10 r391 3 3 4 4 #define PY_SSIZE_T_CLEAN 5 6 #ifdef __sun 7 /* The control message API is only available on Solaris 8 if XPG 4.2 or later is requested. */ 9 #define _XOPEN_SOURCE 500 10 #endif 5 11 6 12 #include "Python.h" … … 16 22 # include <windows.h> 17 23 # include <winsock2.h> 18 # include <process.h> 24 # include <process.h> /* getpid() */ 19 25 # ifdef Py_DEBUG 20 26 # include <crtdbg.h> … … 28 34 # include <sys/uio.h> 29 35 # include <arpa/inet.h> /* htonl() and ntohl() */ 30 #ifndef __ EMX__31 # if HAVE_SEM_OPEN36 #ifndef __OS2__ 37 # if defined(HAVE_SEM_OPEN) && !defined(POSIX_SEMAPHORES_NOT_ENABLED) 32 38 # include <semaphore.h> 33 39 typedef sem_t *SEM_HANDLE; … … 50 56 */ 51 57 #ifndef SEM_VALUE_MAX 52 # ifdef _SEM_VALUE_MAX 53 # define SEM_VALUE_MAX _SEM_VALUE_MAX 54 # else 55 # define SEM_VALUE_MAX INT_MAX 56 # endif 58 #if defined(HAVE_SYSCONF) && defined(_SC_SEM_VALUE_MAX) 59 # define SEM_VALUE_MAX sysconf(_SC_SEM_VALUE_MAX) 60 #elif defined(_SEM_VALUE_MAX) 61 # define SEM_VALUE_MAX _SEM_VALUE_MAX 62 #elif defined(_POSIX_SEM_VALUE_MAX) 63 # define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX 64 #else 65 # define SEM_VALUE_MAX INT_MAX 66 #endif 57 67 #endif 68 58 69 59 70 /* … … 162 173 163 174 typedef struct { 164 165 166 167 168 175 PyObject_HEAD 176 HANDLE handle; 177 int flags; 178 PyObject *weakreflist; 179 char buffer[CONNECTION_BUFFER_SIZE]; 169 180 } ConnectionObject; 170 181
Note:
See TracChangeset
for help on using the changeset viewer.