diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-09 15:04:27 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-09 15:04:27 (GMT) |
commit | 87cf220972c9cb400ddcd577962883dcc5dca51a (patch) | |
tree | 3f1ab5b64ae538a2ced622637cc7e4112b1c6ffd /Modules/_multiprocessing/multiprocessing.h | |
parent | df77e3d4a07223ebfe049e66d4d8a8c0b4315e04 (diff) | |
download | cpython-87cf220972c9cb400ddcd577962883dcc5dca51a.zip cpython-87cf220972c9cb400ddcd577962883dcc5dca51a.tar.gz cpython-87cf220972c9cb400ddcd577962883dcc5dca51a.tar.bz2 |
Issue #11743: Rewrite multiprocessing connection classes in pure Python.
Diffstat (limited to 'Modules/_multiprocessing/multiprocessing.h')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h index b9917c3..02796c1 100644 --- a/Modules/_multiprocessing/multiprocessing.h +++ b/Modules/_multiprocessing/multiprocessing.h @@ -118,11 +118,8 @@ #define MP_SUCCESS (0) #define MP_STANDARD_ERROR (-1) #define MP_MEMORY_ERROR (-1001) -#define MP_END_OF_FILE (-1002) -#define MP_EARLY_END_OF_FILE (-1003) -#define MP_BAD_MESSAGE_LENGTH (-1004) -#define MP_SOCKET_ERROR (-1005) -#define MP_EXCEPTION_HAS_BEEN_SET (-1006) +#define MP_SOCKET_ERROR (-1002) +#define MP_EXCEPTION_HAS_BEEN_SET (-1003) PyObject *mp_SetError(PyObject *Type, int num); @@ -135,7 +132,6 @@ extern PyObject *pickle_loads; extern PyObject *pickle_protocol; extern PyObject *BufferTooShort; extern PyTypeObject SemLockType; -extern PyTypeObject ConnectionType; extern PyTypeObject PipeConnectionType; extern HANDLE sigint_event; @@ -162,25 +158,9 @@ extern HANDLE sigint_event; #endif /* - * Connection definition - */ - -#define CONNECTION_BUFFER_SIZE 1024 - -typedef struct { - PyObject_HEAD - HANDLE handle; - int flags; - PyObject *weakreflist; - char buffer[CONNECTION_BUFFER_SIZE]; -} ConnectionObject; - -/* * Miscellaneous */ -#define MAX_MESSAGE_LENGTH 0x7fffffff - #ifndef MIN # define MIN(x, y) ((x) < (y) ? x : y) # define MAX(x, y) ((x) > (y) ? x : y) |