Commit Graph

1 Commits

Author SHA1 Message Date
John McCall
78a317ad75 Add support for declaring thread-local variables in the runtime.
Use native thread-locals when available and simulated
thread-locals when not.  The simulation layer uses
pthread_getspecific.

Using TLS is significantly more annoying this way, but I kindof
like it because it reinforces that TLS accesses aren't as cheap
as they look.
2020-12-02 18:47:02 -05:00