Added write callbacks.
[collectd.git] / src / cpython.h
index bec6cde..4cac6c5 100644 (file)
        PyGILState_STATE gil_state;\
        gil_state = PyGILState_Ensure();
 
+#define CPY_RETURN_FROM_THREADS \
+       PyGILState_Release(gil_state);\
+       return
+
 #define CPY_RELEASE_THREADS \
        PyGILState_Release(gil_state);\
 }