diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 10:51:03 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 15:02:11 -0300 |
commit | cd23ce8002ea34c5baabf060b3065b9cbb7618a3 (patch) | |
tree | 08b29d5a7fd29416ccca57bfe02d77f814e818c4 /shibokengenerator.h | |
parent | 4cc55bd5ced408b987f41a0c0cd55fa99a869ba3 (diff) |
Generator now makes use of the GilState and ThreadStateSaver classes.
Generated code now makes use of the new convenience classes instead
of directly using the Python provided PyGILState_STATE and PyThreadState.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 4d98ef103..8f16e8306 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -282,7 +282,7 @@ protected: static QString pythonReturnVariableName() { return QString("py_result"); } static QString cppReturnVariableName() { return QString("cpp_result"); } - static QString threadStateVariableName() { return QString("thread_state"); } + static QString threadStateVariableName() { return QString("thread_state_saver"); } static QString cppSelfVariableName() { return QString("cppSelf"); } AbstractMetaFunctionList queryFunctions(const AbstractMetaClass* metaClass, bool allFunction = false); |