plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit e8edc17986bd6a3062f75dba8543dfa7eb4451b7
parent 73722a8bbf80f47ea2df2a212516d1b857ffe29a
Author: rsc <devnull@localhost>
Date:   Mon, 27 Dec 2004 05:18:22 +0000

lock using Lock instead of QLock.
qlocks are complicated enough that
they need to be able to print during
debugging.

Diffstat:
Msrc/lib9/fmtlock2.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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); }