shithub: pc

ref: c3690045d4e188ffb203fe59f08e26b681d275c8
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);
}