Skip to content

Allow to customize Worker for ThreadPool

Zbigniew Reszela requested to merge github/fork/reszelaz/worker_cls into develop

Tango is not thread safe when using threading.Thread. One must use omni threads instead. This was confirmed for parallel event subscriptions in https://github.com/tango-controls/pytango/issues/307.

For example, in the case of Sardana, the custom Worker will be protected by the EnsureOmniThread context manager intoroduced in https://github.com/tango-controls/pytango/pull/327.

Merge request reports