mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 04:16:59 -05:00
Two fixes: 1. Constructor: when no threads can be spawned the constructor throws, but the destructor never runs for a partially-constructed object. The pthread_cond_t and pthread_mutex_t initialized earlier in the constructor body were leaked. Destroy them before throwing. 2. Monitor: the _stop check was outside _monitor_mutex, so the destructor could set _stop and signal between the check and pthread_cond_timedwait, losing the wakeup and delaying shutdown by up to one sample interval (~100ms). Move the _stop check under _monitor_mutex so it is serialized with the destructor's signal, closing the race. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||