projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added write callbacks.
[collectd.git]
/
src
/
cpython.h
diff --git
a/src/cpython.h
b/src/cpython.h
index
bec6cde
..
4cac6c5
100644
(file)
--- a/
src/cpython.h
+++ b/
src/cpython.h
@@
-14,6
+14,10
@@
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);\
}