mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
The _tl_should_exit mechanism in start_routine (and start_routine_autoscale) is correct but the control flow is non-obvious: _remove_thread_scaling_locked enqueues a lambda that sets the thread-local flag and calls _remove_self (detach + erase), then the worker checks the flag after running the func and exits. Replace the terse one-line comments with an explanation of the full protocol so future readers don't mistake it for dead code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||