#include #include #include #include "threadimpl.h" void incref(Ref *r) { ainc(&r->ref); } long decref(Ref *r) { return adec(&r->ref); }