ThreadsafetyTestUtils#
- class omni.graph.core.ThreadsafetyTestUtils#
Bases:
object
Utilities for Running Threadsafety Unit Tests from Python Generators for OG nodes
Methods
add_to_threading_cache
(test_instance_id, code)Add some data that needs to be shared across test instances to a single, shared cache
make_serial_test
(test_generator)Make a serial test from a test generator
make_threading_test
(test_generator)Make a thread-safety test from a test generator
Method that evaluates a piece of code once during the first test instance
Method that evaluates a piece of code once during the last test instance
Attributes
EVALUATION_ALL_GRAPHS
EVALUATION_WAIT_FRAME
MAX_GRAPH_INSTANCES
thread_cache_indices
threading_cache
- __init__()#
- classmethod add_to_threading_cache(
- test_instance_id: int,
- code,
Add some data that needs to be shared across test instances to a single, shared cache
- classmethod make_serial_test(test_generator)#
Make a serial test from a test generator
- classmethod make_threading_test(test_generator)#
Make a thread-safety test from a test generator
- classmethod single_evaluation_first_test_instance(
- test_instance_id: int,
- func,
- *args,
- **kwargs,
Method that evaluates a piece of code once during the first test instance
- classmethod single_evaluation_last_test_instance(
- test_instance_id: int,
- func,
- *args,
- **kwargs,
Method that evaluates a piece of code once during the last test instance