commit | e8edc17986bd6a3062f75dba8543dfa7eb4451b7 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Mon Dec 27 05:18:22 2004 +0000 |
committer | rsc <devnull@localhost> | Mon Dec 27 05:18:22 2004 +0000 |
tree | 0585874845b6ff3c58ccf909c97bd7419a2d7bc3 | |
parent | 73722a8bbf80f47ea2df2a212516d1b857ffe29a [diff] |
lock using Lock instead of QLock. qlocks are complicated enough that they need to be able to print during debugging.
diff --git a/src/lib9/fmtlock2.c b/src/lib9/fmtlock2.c index d56eed7..d711e6d 100644 --- a/src/lib9/fmtlock2.c +++ b/src/lib9/fmtlock2.c
@@ -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); }