diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-05-26 21:09:59 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-05-26 21:09:59 (GMT) |
commit | 26cdf1fe5b4c42336a244ad8921bc660ff6819b4 (patch) | |
tree | debf14a29b386e8c1100856c1beb0891b75abc93 /Modules/_multiprocessing/multiprocessing.c | |
parent | 1a0df94db3786aac7624e9bcb6922b87d4498692 (diff) | |
download | cpython-26cdf1fe5b4c42336a244ad8921bc660ff6819b4.zip cpython-26cdf1fe5b4c42336a244ad8921bc660ff6819b4.tar.gz cpython-26cdf1fe5b4c42336a244ad8921bc660ff6819b4.tar.bz2 |
Make multiprocessing's shared memory use memoryview instead of raw pointer
Diffstat (limited to 'Modules/_multiprocessing/multiprocessing.c')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index d5593f0..eb05c62 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -51,20 +51,6 @@ mp_SetError(PyObject *Type, int num) return NULL; } - -static PyObject* -multiprocessing_address_of_buffer(PyObject *self, PyObject *obj) -{ - void *buffer; - Py_ssize_t buffer_len; - - if (PyObject_AsWriteBuffer(obj, &buffer, &buffer_len) < 0) - return NULL; - - return Py_BuildValue("Nn", - PyLong_FromVoidPtr(buffer), buffer_len); -} - #ifdef MS_WINDOWS static PyObject * multiprocessing_closesocket(PyObject *self, PyObject *args) @@ -137,9 +123,6 @@ multiprocessing_send(PyObject *self, PyObject *args) */ static PyMethodDef module_methods[] = { - {"address_of_buffer", multiprocessing_address_of_buffer, METH_O, - "address_of_buffer(obj) -> int\n" - "Return address of obj assuming obj supports buffer inteface"}, #ifdef MS_WINDOWS {"closesocket", multiprocessing_closesocket, METH_VARARGS, ""}, {"recv", multiprocessing_recv, METH_VARARGS, ""}, |