I found myself needing to access some of TaskPool's helper classes in https://bugs.webkit.org/show_bug.cgi?id=225221 and realized the organization of TaskPool's helper classes needed some improvement.
<rdar://problem/77514131>
Created attachment 427685 [details] Patch
Comment on attachment 427685 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427685&action=review > Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py:256 > + cls.queue = queue Is this used anywhere other than `cls.queue = None`?
Comment on attachment 427685 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427685&action=review >> Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py:256 >> + cls.queue = queue > > Is this used anywhere other than `cls.queue = None`? Not yet. The motivation for this is to allow worker processes to pass messages to their parent explicitly. This is particularly helpful when running test suites, where we may be able to partially report results to our parent process before finishing the entirety of our shard.
Comment on attachment 427685 [details] Patch r=me
Committed r276997 (237317@main): <https://commits.webkit.org/237317@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427685 [details].