3 ms·
How so? This is almost certainly what the internals of a packaged event wait would look like.
by necheffa 6y ago
How so? This is almost certainly what the internals of a packaged event wait would look like.
- mkj 6y agoIt could use a Queue of some kind rather than just pushing onto a deque between threads [1]? Then it would idly wait for the results_thread_main to push results. I guess that might be what Mitogen does (along with other improvements), a faster Ansible strategy [2]. [1] https://github.com/ansible/ansible/blob/becf9416736dc911d3411b92f09512b4dae2955c/lib/ansible/plugins/strategy/__init__.py#L109 https://github.com/ansible/ansible/blob/becf9416736dc911d341... [2] https://github.com/mitogen-hq/mitogen/blob/master/docs/ansible_detailed.rst https://github.com/mitogen-hq/mitogen/blob/master/docs/ansib...