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