You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove `PThread.runningWorkers` and use `PThread.pthreads` instead to
track running workers. `PThread.pthreads` already contains all the
necessary information, and keeping both in sync was redundant.
This also optimizes thread exit by replacing an O(N) array splice with
an O(1) map deletion, at the cost of making count queries (mostly used
in tests) O(N) instead of O(1).
TAG=agy
CONV=47f918e2-bd47-4e38-9a6d-af1765cf2f7e
0 commit comments