Functions
test_gil_scoped Namespace Reference

Functions

def _python_to_cpp_to_python ()
 
def _python_to_cpp_to_python_from_threads (num_threads, parallel=False)
 
def _run_in_process (target, args, kwargs)
 
def test_cross_module_gil ()
 
def test_python_to_cpp_to_python_from_process ()
 
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 ()
 

Function Documentation

def test_gil_scoped._python_to_cpp_to_python ( )
private
Calls different C++ functions that come back to Python.

Definition at line 26 of file test_gil_scoped.py.

def test_gil_scoped._python_to_cpp_to_python_from_threads (   num_threads,
  parallel = False 
)
private
Calls different C++ functions that come back to Python, from Python threads.

Definition at line 42 of file test_gil_scoped.py.

def test_gil_scoped._run_in_process (   target,
  args,
  kwargs 
)
private
Runs target in process and returns its exitcode after 10s (None if still alive).

Definition at line 12 of file test_gil_scoped.py.

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 97 of file test_gil_scoped.py.

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 89 of file test_gil_scoped.py.

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 59 of file test_gil_scoped.py.

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 69 of file test_gil_scoped.py.

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 79 of file test_gil_scoped.py.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:21