3 ms·
> On Linux it is as good as it can possibly be for a generic catch all lock A futex is a 32-bit aligned value, thus it needs 4 bytes. But std::mutex on Linux i
by tialaramex 4y ago
> On Linux it is as good as it can possibly be for a generic catch all lock
A futex is a 32-bit aligned value, thus it needs 4 bytes. But std::mutex on Linux is 40 bytes, ten times larger. Now, maybe where you come from "ten times larger than it needs to be" is "as good as it can possibly be" but where I come from that's not very good.