mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
The monitor thread used nanosleep for its sample interval, which meant the destructor had to block for up to one full sample period (100ms by default) waiting for the monitor to wake up and notice _stop. Replace nanosleep with pthread_cond_timedwait on a dedicated condvar (_monitor_cond) using CLOCK_MONOTONIC. The destructor now signals the condvar immediately after setting _stop, so the monitor wakes up and exits without waiting for the interval to expire. This also eliminates the EINTR retry loop — pthread_cond_timedwait handles signals internally and returns when either the timeout expires or the condvar is signaled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||