shithub: riscv

ref: e0e2e9d81b4dbdabb7521dcc68e9f980f26cc3a9
dir: /sys/src/libthread/ref.c/

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