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