ref: e51c4bc6e493a9cd0d9e9d7f1d24c57ae77bab65 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); }