rogue
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rogue::ScopedGil Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ScopedGil()

rogue::ScopedGil::ScopedGil ( )

Acquires the GIL for this scope.


Company : SLAC National Accelerator Laboratory

Description:

Acquire the GIL for the scope of this class.

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

contained in the LICENSE.txt file.

Definition at line 19 of file ScopedGil.cpp.

◆ ~ScopedGil()

rogue::ScopedGil::~ScopedGil ( )

Releases the GIL acquired by this scope.

Definition at line 25 of file ScopedGil.cpp.


The documentation for this class was generated from the following files: