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