shithub: pc

ref: ee9fff6ef4e8d3fc989392791c5752f1f832f210
dir: /include/thread.h/

View raw version
typedef struct Ref Ref;

struct Ref {
	long ref;
};

static void
incref(Ref *r)
{
	r->ref++;
}

static long
decref(Ref *r)
{
	return --(r->ref);
}