MultiThreadWrapperWithMain
(class from pyomo.common.multithread
)
- class pyomo.common.multithread.MultiThreadWrapperWithMain(wrapped)[source]
Bases:
MultiThreadWrapper
An extension of MultiThreadWrapper that exposes the wrapped instance corresponding to the [main_thread()](https://docs.python.org/3/library/threading.html#threading.main_thread) under the .main_thread field.
This is useful for a falling back to a main instance when needed, but results in race conditions if used improperly.
Methods
__init__
(base)Member Documentation