diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 10:46:38 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 14:53:27 -0300 |
commit | 4cc55bd5ced408b987f41a0c0cd55fa99a869ba3 (patch) | |
tree | 80d8ab7f60a7d18221fdba4b2d561a1ed2fc85db /libshiboken/shiboken.h | |
parent | 79774d9827ba3883ac1862aee86c890634fa21a9 (diff) |
Adds convenience ThreadStateSaver class to libshiboken.
ThreadStateSaver class just wraps the Python Thread save and restore
operations. Its destructor also ensures the restoration of saved
thread state if the method ends abruptly, e.g. when the wrapped
C++ library throws an exception.
Diffstat (limited to 'libshiboken/shiboken.h')
-rw-r--r-- | libshiboken/shiboken.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libshiboken/shiboken.h b/libshiboken/shiboken.h index 5c44cbb02..f2b0b78ed 100644 --- a/libshiboken/shiboken.h +++ b/libshiboken/shiboken.h @@ -41,6 +41,7 @@ #include "bindingmanager.h" #include "conversions.h" #include "gilstate.h" +#include "threadstatesaver.h" #include "helper.h" #include "pyenum.h" #include "shibokenmacros.h" |