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/ …
@cmuratori @jhaberstro @handmade_hero But either way, the _right_ way to do a lock with CFG is to try the lock first, then call the OS!
-
-
@cmuratori@jhaberstro@handmade_hero You don't do it the other way around _anyway_. That way there'd be no problem using CFG. -
@cmuratori@jhaberstro@handmade_hero Because you wouldn't ever hit the CFG slow path until you were already going to go to sleep anyway. - 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.