mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
e8edc17986
qlocks are complicated enough that they need to be able to print during debugging.
16 lines
145 B
C
16 lines
145 B
C
#include <u.h>
|
|
#include <libc.h>
|
|
|
|
static Lock fmtlock;
|
|
|
|
void
|
|
__fmtlock(void)
|
|
{
|
|
lock(&fmtlock);
|
|
}
|
|
|
|
void
|
|
__fmtunlock(void)
|
|
{
|
|
unlock(&fmtlock);
|
|
}
|