From 76193d7cb0457807b2f0b95f909ab5de19480cd7 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 30 Sep 2003 17:47:42 +0000 Subject: Initial revision --- src/libthread/ref.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/libthread/ref.c (limited to 'src/libthread/ref.c') diff --git a/src/libthread/ref.c b/src/libthread/ref.c new file mode 100644 index 00000000..9b78e63e --- /dev/null +++ b/src/libthread/ref.c @@ -0,0 +1,13 @@ +#include "threadimpl.h" + +void +incref(Ref *r) +{ + _xinc(&r->ref); +} + +long +decref(Ref *r) +{ + return _xdec(&r->ref); +} -- cgit v1.2.3