3 ms·
> And I guess because it mutates globals, it is a bit confusing in a threaded context. What globals?
by gpderetta 10y ago
> And I guess because it mutates globals, it is a bit confusing in a threaded context.
What globals?
- chubot 10y agoMy understanding is it works a bit like errno. errno is global that is set by the callee and then the caller can check it whenever, not necessarily right after the call or in the same function. But it's actually a thread-local, so it works fine in a threaded context, but is just a little odd to look at.