diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/fmtlock2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib9/fmtlock2.c b/src/lib9/fmtlock2.c new file mode 100644 index 00000000..d56eed74 --- /dev/null +++ b/src/lib9/fmtlock2.c @@ -0,0 +1,16 @@ +#include <u.h> +#include <libc.h> + +static QLock fmtlock; + +void +__fmtlock(void) +{ + qlock(&fmtlock); +} + +void +__fmtunlock(void) +{ + qunlock(&fmtlock); +} |