plan9fox/sys/src/libthread/ref.c

17 lines
166 B
C
Raw Normal View History

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