aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmtlock2.c
blob: b755daa385ec91e39ce30712864e1983e0b78ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <u.h>
#include <libc.h>

static RWLock fmtlock;

void
__fmtrlock(void)
{
	rlock(&fmtlock);
}

void
__fmtrunlock(void)
{
	runlock(&fmtlock);
}

void
__fmtwlock(void)
{
	wlock(&fmtlock);
}

void
__fmtwunlock(void)
{
	wunlock(&fmtlock);
}