plan9front/sys/src/libthread/ref.c

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);
}