Hacker News new | ask | show | jobs
by raphlinus 2685 days ago
You can get rid of the heap allocation for Mutex by using parking_lot, and there is work to merge this into standard library. The rest of what you wrote sounds right to me.