cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Functions
test_gil_scoped Namespace Reference

Functions

def test_python_to_cpp_to_python_from_thread ()
 
def test_python_to_cpp_to_python_from_thread_multiple_parallel ()
 
def test_python_to_cpp_to_python_from_thread_multiple_sequential ()
 
def test_python_to_cpp_to_python_from_process ()
 
def test_cross_module_gil ()
 

Function Documentation

◆ test_cross_module_gil()

def test_gil_scoped.test_cross_module_gil ( )
Makes sure that the GIL can be acquired by another module from a GIL-released state.

Definition at line 92 of file test_gil_scoped.py.

◆ test_python_to_cpp_to_python_from_process()

def test_gil_scoped.test_python_to_cpp_to_python_from_process ( )
Makes sure there is no GIL deadlock when using processes.

This test is for completion, but it was never an issue.

Definition at line 84 of file test_gil_scoped.py.

◆ test_python_to_cpp_to_python_from_thread()

def test_gil_scoped.test_python_to_cpp_to_python_from_thread ( )
Makes sure there is no GIL deadlock when running in a thread.

It runs in a separate process to be able to stop and assert if it deadlocks.

Definition at line 55 of file test_gil_scoped.py.

◆ test_python_to_cpp_to_python_from_thread_multiple_parallel()

def test_gil_scoped.test_python_to_cpp_to_python_from_thread_multiple_parallel ( )
Makes sure there is no GIL deadlock when running in a thread multiple times in parallel.

It runs in a separate process to be able to stop and assert if it deadlocks.

Definition at line 64 of file test_gil_scoped.py.

◆ test_python_to_cpp_to_python_from_thread_multiple_sequential()

def test_gil_scoped.test_python_to_cpp_to_python_from_thread_multiple_sequential ( )
Makes sure there is no GIL deadlock when running in a thread multiple times sequentially.

It runs in a separate process to be able to stop and assert if it deadlocks.

Definition at line 73 of file test_gil_scoped.py.