@steipete to compensate, pthread mutexes are 2-2.5x faster than they used to be on new OSs
-
-
- View other replies
-
@Catfish_Man your follow-ups are gold. Thanks for sharing! -
@steipete@catfish_man so this isn't safe on iOS then? https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/ReactiveCocoa/Swift/Atomic.swift … Why is it a public API then?
-
@NachoSoto@steipete that’s relatively safe. Even under CPU starvation that critical section is so tiny it’s likely ok in real situations.
-
-
-
@steipete you gotta be kidding me -
@NachoSoto not that's common knowledge since iOS 9 latest. I tweeted about it around WWDC ;) -
@steipete
I totally missed this
-
-
-
@steipete also applies to the new MacBooks since they will depress priority and throttle in thermal overload situations. - View other replies
-
@Catfish_Man You work at Apple, right? Why not add this info to the documentation? -
@umanwizard I don’t have commit access to the docs system, nor do I work on the locks in question. There is info about much of this in docs. -
@Catfish_Man Only certain people can commit docs??! I've always wondered why, e.g., there are loads of syscalls with no man page... -
@umanwizard man pages and headerdocs are different. I’m talking about the API docs pages on http://developer.apple.com and related stuff.
-
-
-
-
@jaredsinclair@steipete Yeah I was surprised too. Seems potentially very bad. - View other replies
-
-
-
@steipete what the hell. So why is it a public API we can call, and this is not documented? WTF. -
@steipete “unsafe” may be an exaggeration
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.
Peter Steinberger
David Smith
Nacho Soto
0xCEFAEDFE
JΛЯΣD
Kevin Ballard
Javi
Justin Spahr-Summers