ref: 761bf6c3477b2bef675c20aad954acae02b923ed dir: /sys/src/libthread/ref.c/
#include <u.h> #include <libc.h> #include <thread.h> #include "threadimpl.h" void incref(Ref *r) { ainc(&r->ref); } long decref(Ref *r) { return adec(&r->ref); }