[pypy-commit] pypy reflex-support: use a CINT global lock (still insufficient, though)
wlav
noreply at buildbot.pypy.org
Sat Aug 31 01:21:55 CEST 2013
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r66703:48d417405c77
Date: 2013-08-30 16:19 -0700
http://bitbucket.org/pypy/pypy/changeset/48d417405c77/
Log: use a CINT global lock (still insufficient, though)
diff --git a/pypy/module/cppyy/src/cintcwrapper.cxx b/pypy/module/cppyy/src/cintcwrapper.cxx
--- a/pypy/module/cppyy/src/cintcwrapper.cxx
+++ b/pypy/module/cppyy/src/cintcwrapper.cxx
@@ -8,6 +8,7 @@
#include "TApplication.h"
#include "TInterpreter.h"
+#include "TVirtualMutex.h"
#include "Getline.h"
#include "TBaseClass.h"
@@ -368,6 +369,8 @@
static inline G__value cppyy_call_T(cppyy_method_t method,
cppyy_object_t self, int nargs, void* args) {
+ R__LOCKGUARD2(gCINTMutex);
+
G__param* libp = (G__param*)((char*)args - offsetof(G__param, para));
assert(libp->paran == nargs);
fixup_args(libp);
More information about the pypy-commit
mailing list