1 #include <u.h> 2 #include <libc.h> 3 #include <thread.h> 4 #include "threadimpl.h" 5 6 void 7 incref(Ref *r) 8 { 9 _xinc(&r->ref); 10 } 11 12 long 13 decref(Ref *r) 14 { 15 return _xdec(&r->ref); 16 } 17