40 ms·
Do you understand why the locale object needs to be locked? I would have expected it to be immutable...
by nicoburns 5y ago
Do you understand why the locale object needs to be locked? I would have expected it to be immutable...
- Akronymus 5y agoI assume that its made to be mutable to enable one to change the locale at one point and update it application wide.
- gumby 5y agoSomeone could allow users to change locale via an application's interface.
- rocqua 5y agoWhat about that requires a lock? To prevent reading a half destroyed object? Why not a write lock that allows multiple concurrent readers?
- gumby 5y agoThe whole thing is a botch. Sadly, his happens time to time in many standards. More in software than hardware standards in my experience — I wonder why.
- thayne 5y agoThere are a lot of things in c one would expect to be immutable or re-entrant that aren't.