mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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 <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 a new issue