|
rogue
|
RAII helper that acquires the Python GIL for a scope. More...
#include <ScopedGil.h>
Public Member Functions | |
| ScopedGil () | |
| Acquires the GIL for this scope. | |
| ~ScopedGil () | |
| Releases the GIL acquired by this scope. | |
RAII helper that acquires the Python GIL for a scope.
Constructing this object acquires the GIL (when Python is enabled) and destruction releases it, making it safe to call Python/C-API or Boost.Python operations from C++ threads.
Definition at line 35 of file ScopedGil.h.
| rogue::ScopedGil::ScopedGil | ( | ) |
Acquires the GIL for this scope.
Description:
This file is part of the rogue software platform. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of the rogue software platform, including this file, may be copied, modified, propagated, or distributed except according to the terms
Definition at line 19 of file ScopedGil.cpp.
| rogue::ScopedGil::~ScopedGil | ( | ) |
Releases the GIL acquired by this scope.
Definition at line 25 of file ScopedGil.cpp.