mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
After _try_remove_self_if_above detaches and erases the thread, the destructor's snapshot will not include it — so pthread_join is never called on it, and the ThreadPool object can be destroyed while this thread is still returning. This is safe because the thread only accesses local variables after detach (name is a std::string copy made at function entry), but the reasoning is subtle. Add an explicit safety comment explaining why there is no use-after-free. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||