plan9fox/sys/src/libthread/ref.c
2011-03-30 19:35:09 +03:00

17 lines
166 B
C

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