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 changed files with 3 additions and 3 deletions
|
|
@ -1,16 +1,16 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
|
||||
static QLock fmtlock;
|
||||
static Lock fmtlock;
|
||||
|
||||
void
|
||||
__fmtlock(void)
|
||||
{
|
||||
qlock(&fmtlock);
|
||||
lock(&fmtlock);
|
||||
}
|
||||
|
||||
void
|
||||
__fmtunlock(void)
|
||||
{
|
||||
qunlock(&fmtlock);
|
||||
unlock(&fmtlock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue