News for hackers. Stuff that matters.
Re:Blocking code is a leaky abstraction by vacuity on Monday October 21, 2024 @03:30PM (#41907578)
Even outside of UI, use-from-one-thread-only is perfectly valid and acceptable. The issue at that point is with the tools (e.g. C), not the API. If the API provides thread-safe entry points, that's because it is taking on the responsibility of synchronizing. Maybe that's fine for a particular API, but it shouldn't be expected for everything. It's an added layer of complexity, hidden from the programmer, so expect it to be absent in more optimized cases.

There are no comments on this comment yet.