lock using Lock instead of QLock.
qlocks are complicated enough that they need to be able to print during debugging.
This commit is contained in:
parent
73722a8bbf
commit
e8edc17986
@ -1,16 +1,16 @@
|
|||||||
#include <u.h>
|
#include <u.h>
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
|
|
||||||
static QLock fmtlock;
|
static Lock fmtlock;
|
||||||
|
|
||||||
void
|
void
|
||||||
__fmtlock(void)
|
__fmtlock(void)
|
||||||
{
|
{
|
||||||
qlock(&fmtlock);
|
lock(&fmtlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
__fmtunlock(void)
|
__fmtunlock(void)
|
||||||
{
|
{
|
||||||
qunlock(&fmtlock);
|
unlock(&fmtlock);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user