diff options
author | Pauli Virtanen <pav@iki.fi> | 2020-06-07 15:37:21 +0300 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2020-06-07 21:27:50 +0300 |
commit | c3491aa1a6458e6cc1fce72dd9e0ec6e05e7c911 (patch) | |
tree | ea31542fec06e0b5f675e32d2c641939ff538a7e /numpy/f2py/src/fortranobject.h | |
parent | 267621f07a902eceffc179fa01f984f3e2d4bdcd (diff) | |
download | numpy-c3491aa1a6458e6cc1fce72dd9e0ec6e05e7c911.tar.gz |
BUG: numpy/f2py: put callback globals to thread-local storage
Diffstat (limited to 'numpy/f2py/src/fortranobject.h')
-rw-r--r-- | numpy/f2py/src/fortranobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/f2py/src/fortranobject.h b/numpy/f2py/src/fortranobject.h index 5c382ab7b..d4cc10243 100644 --- a/numpy/f2py/src/fortranobject.h +++ b/numpy/f2py/src/fortranobject.h @@ -86,6 +86,9 @@ PyObject * F2PyCapsule_FromVoidPtr(void *ptr, void (*dtor)(PyObject *)); void * F2PyCapsule_AsVoidPtr(PyObject *obj); int F2PyCapsule_Check(PyObject *ptr); +extern void *F2PySwapThreadLocalCallbackPtr(char *key, void *ptr); +extern void *F2PyGetThreadLocalCallbackPtr(char *key); + #define ISCONTIGUOUS(m) (PyArray_FLAGS(m) & NPY_ARRAY_C_CONTIGUOUS) #define F2PY_INTENT_IN 1 #define F2PY_INTENT_INOUT 2 |