[webkit-changes] [WebKit/WebKit] df9c2a: [webkitcorepy] Ensure TaskPool queue full before r...

Jonathan Bedard noreply at github.com
Tue Sep 13 14:15:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: df9c2ab6a70310e035380c2040446d171205d3a5
      https://github.com/WebKit/WebKit/commit/df9c2ab6a70310e035380c2040446d171205d3a5
  Author: Jonathan Bedard <jbedard at apple.com>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M Tools/Scripts/libraries/webkitcorepy/setup.py
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py

  Log Message:
  -----------
  [webkitcorepy] Ensure TaskPool queue full before reading
https://bugs.webkit.org/show_bug.cgi?id=245144
<rdar://problem/99873350>

Reviewed by Stephanie Lewis.

* Tools/Scripts/libraries/webkitcorepy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py:
(_Result.__call__): Decrement pending task counter.
(TaskPool): Set pending task counter to 0.
(TaskPool.do): Increment pending task counter, only consume from readers
if enough tasks are available for workers.

Canonical link: https://commits.webkit.org/254456@main




More information about the webkit-changes mailing list