17#ifndef __ROGUE_GIL_RELEASE_H__
18#define __ROGUE_GIL_RELEASE_H__
23 #include <boost/python.hpp>
38 PyThreadState* state_;
RAII helper that releases the Python GIL for a scope.
void acquire()
Re-acquires the GIL explicitly.
~GilRelease()
Re-acquires the GIL if currently released.
GilRelease()
Constructs and releases the GIL for this scope.
void release()
Releases the GIL explicitly.