ref: 447bbbd25bbb42f2c3da11ac298f52a31bfb573d
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 castto(void#), \ &netlck castto(void#), \ &envlck castto(void#), \ {mtx; mtxlock(mtx castto(mutex#))}, \ {mtx; mtxunlock(mtx castto(mutex#))} \ ) }