summaryrefslogtreecommitdiff
path: root/sys/src/libthread/ref.c
blob: 9605af7ff8e8dc5b70e6b6f318ad3c796f836bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);
}