Small fixes to make valgrind happy.
- Use a std::atomic for the bytesUsed statistic in the BufferCache (a legit bug, though harmless.) - Hold associated mutexes when consuming futures. Strictly speaking, all of the worker threads should be idle when these are consumed and it's only the main thread that's running, so there should be no need...
Showing
想要评论请 注册 或 登录