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