Boost logo

Boost :

Subject: [boost] [sync] [thread] Faster mutex
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2015-01-30 09:09:40


One of the Mesa developers implemented a faster mutex:

According to the sources of glibc, Mesa's mutex has a much smaller size
(only 1 uint32_t vs 6 ints + 2 pointers), performs less actions before and
after the actual syscall (no getting and setting of the
mutex->__data.__owner, no type field checks)

This gives an ~10% speedup.

Just curious, maybe ideas from Mesa's mutex could be useful for some of the
Boost libraries.

Best regards,
Antony Polukhin

Boost list run by bdawes at, gregod at, cpdaniel at, john at