tlock using Lock instead of QLock. qlocks are complicated enough that they need to be able to print during debugging. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e8edc17986bd6a3062f75dba8543dfa7eb4451b7
(DIR) parent 73722a8bbf80f47ea2df2a212516d1b857ffe29a
(HTM) Author: rsc <devnull@localhost>
Date: Mon, 27 Dec 2004 05:18:22 +0000
lock using Lock instead of QLock.
qlocks are complicated enough that
tthey need to be able to print during
debugging.
Diffstat:
M src/lib9/fmtlock2.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/src/lib9/fmtlock2.c b/src/lib9/fmtlock2.c
t@@ -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);
}