|
|
|
|
|
by btschaegg
3364 days ago
|
|
> Apple platforms defaulting to fair is no less conforming than Linux defaulting to unfair. Of course, but it makes it less performant in many situations, while you can't count on that feature if you're coding against the standard (i.e. if for cross platform development; hence OP's blogpost). Which - in turn - explains why people are complaining about the performance, since they need to guarantee the fairness themselves anyway if they really need it. On the other hand: If you're only coding against OSX, having the fairness in an extension shouldn't be a problem anyway. Of course, this then facilitates other problems, if the standard is not evolving fast enough (the whole OpenGL extension mess would be a good example). |
|
In general, when picking defaults and choosing between "correct" or "performant", the decision is usually made in favor of "correct", because incorrectness should always be an opt-in thing. I'm actually kind of surprised Linux and Windows default to unfair locks.