mar-file-system / GUFI

Grand Unified File-Index
Other
46 stars 23 forks source link

simplify steal() macro #163

Closed bertschinger closed 2 months ago

bertschinger commented 2 months ago

The steal() macro searches a contiguous range of worker thread IDs. In practice, however, all users call it twice to "loop around" and search the entire set of worker threads.

Rather than make every caller code this looping behavior, steal() can implement the loop around itself, and then each user only needs to call it once.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.25%. Comparing base (456efe8) to head (efda2de). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #163 +/- ## ========================================== + Coverage 92.23% 92.25% +0.01% ========================================== Files 70 70 Lines 8897 8893 -4 Branches 1058 1057 -1 ========================================== - Hits 8206 8204 -2 + Misses 454 453 -1 + Partials 237 236 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.