drawterm/libc/fmtlock.c

17 lines
136 B
C
Raw Normal View History

2006-01-17 14:57:18 +01:00
#include <u.h>
#include <libc.h>
static Lock fmtl;
2005-08-08 14:50:13 +02:00
void
2006-01-17 13:37:52 +01:00
__fmtlock(void)
2005-08-08 14:50:13 +02:00
{
2006-01-17 14:57:18 +01:00
lock(&fmtl);
2005-08-08 14:50:13 +02:00
}
void
2006-01-17 13:37:52 +01:00
__fmtunlock(void)
2005-08-08 14:50:13 +02:00
{
2006-01-17 14:57:18 +01:00
unlock(&fmtl);
2005-08-08 14:50:13 +02:00
}