So, whenever someone asks on @handmade_hero why I don't use C++'s atomics, I can just cut-and-paste this link:https://stoyannk.wordpress.com/2016/04/30/msvc-mutex-is-slower-than-you-might-expect/ …
@cyberkm @handmade_hero @stoyannk Nope. On Handmade Hero we code the mutexes ourselves specifically so that crap doesn't happen.
-
-
@cmuratori@cyberkm@stoyannk You'll note, for example, that we never call critical section! We use interlocked exchange intrinsics. -
@cmuratori@cyberkm@stoyannk Pure interlocked implies a spin loop though - do you not yield the CPU? - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.