Classes | Macros | Functions
test_gil_scoped.cpp File Reference
#include <pybind11/functional.h>
#include "pybind11_tests.h"
#include <string>
#include <thread>
Include dependency graph for test_gil_scoped.cpp:

Go to the source code of this file.

Classes

class  PyVirtClass
 
class  VirtClass
 

Macros

#define CROSS_MODULE(Function)
 

Functions

 TEST_SUBMODULE (gil_scoped, m)
 

Macro Definition Documentation

◆ CROSS_MODULE

#define CROSS_MODULE (   Function)
Value:
auto cm = py::module_::import("cross_module_gil_utils"); \
auto target = reinterpret_cast<void (*)()>(PyLong_AsVoidPtr(cm.attr(Function).ptr()));

Definition at line 17 of file test_gil_scoped.cpp.

Function Documentation

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( gil_scoped  ,
m   
)

Definition at line 37 of file test_gil_scoped.cpp.

cm
static const double cm
Definition: TimeOfArrivalExample.cpp:34


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:34