src: use thread_local to declare modpending
The pointer used to hold an incoming dynamically loaded module's
node::node_module
structure needs to be thread-local. So far this was
done with uv_key_set()
and uv_key_get()
. The language now supports
the thread_local
keyword which makes implementing this a lot cleaner.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines