Sujet : Re: Futexes ain't fast
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++Date : 26. Sep 2024, 19:09:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd4800$arc8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 9/26/2024 10:54 AM, Bonita Montero wrote:
Am 26.09.2024 um 19:48 schrieb Chris M. Thomasson:
On 9/26/2024 10:44 AM, Bonita Montero wrote:
Adaptive mutexes often don't make any sense. The locking-frequency has
to be high and the locked-interval needs to be very short to make spin-
ning likely to succeed. That's both not often.
Adaptive mutexes with the right spin counts do make a difference!
Only under the rare circumstances I've shown.
I just showed you one use of try_lock. This is just one out of many. try_lock is useful.
No one needs try_lock.
^^^^^^^^^^^^^^
Yawn...