* move global into function scope
* clarify comments
* avoid unnecessary usage of std.atomic API
* switch on error instead of `catch unreachable`
* call linux.gettid() instead of going through higher level API and
doing unnecessary casting
073762395eAndrew Kelley committed on 6/6/2022, 10:34:20 PMparentd1e8b73