Before this change, errno was "completely un-threadsafe" as the comment states. This changes errno to be threadsafe by making errno a thread local variable.
Before this change, errno was "completely un-threadsafe" as the comment states. This changes errno to be threadsafe by making errno a thread local variable.