xref: /plan9/sys/src/libthread/ref.c (revision 0b459c2cb92b7c9d88818e9a2f72e678e5bc4553)
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