ref: fde9deac883c3f2ae6ffb7d05b4f5e404f5c2249
dir: /lib/thread/hookstd.myr/
use std use "mutex" pkg thread = ;; var memlck var netlck var envlck const __init__ = { memlck = mkmtx() netlck = mkmtx() envlck = mkmtx() std.__lockinit( \ (&memlck : void#), \ (&netlck : void#), \ (&envlck : void#), \ {mtx; mtxlock((mtx : mutex#))}, \ {mtx; mtxunlock((mtx : mutex#))} \ ) }