plan9port/src/lib9/fmtlock2.c
rsc e8edc17986 lock using Lock instead of QLock.
qlocks are complicated enough that
they need to be able to print during
debugging.
2004-12-27 05:18:22 +00:00

16 lines
145 B
C

#include <u.h>
#include <libc.h>
static Lock fmtlock;
void
__fmtlock(void)
{
lock(&fmtlock);
}
void
__fmtunlock(void)
{
unlock(&fmtlock);
}