mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 18:48:35 +08:00
drop GIL for plasma_get (#95)
This commit is contained in:
committed by
Robert Nishihara
parent
02e8dd245d
commit
b695f2b7e4
@@ -109,7 +109,9 @@ PyObject *PyPlasma_get(PyObject *self, PyObject *args) {
|
||||
uint8_t *data;
|
||||
int64_t metadata_size;
|
||||
uint8_t *metadata;
|
||||
Py_BEGIN_ALLOW_THREADS;
|
||||
plasma_get(conn, object_id, &size, &data, &metadata_size, &metadata);
|
||||
Py_END_ALLOW_THREADS;
|
||||
PyObject *t = PyTuple_New(2);
|
||||
PyTuple_SetItem(t, 0, PyBuffer_FromMemory((void *) data, (Py_ssize_t) size));
|
||||
PyTuple_SetItem(t, 1, PyByteArray_FromStringAndSize(
|
||||
|
||||
Reference in New Issue
Block a user