--- libaitio/src/aitio.c 2012/05/23 11:49:35 1.10.6.1 +++ libaitio/src/aitio.c 2012/05/23 11:59:51 1.10.6.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.c,v 1.10.6.1 2012/05/23 11:49:35 misho Exp $ +* $Id: aitio.c,v 1.10.6.2 2012/05/23 11:59:51 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -51,6 +51,8 @@ int io_Debug; #pragma GCC visibility push(hidden) +int io_mpool; + int io_Errno; char io_Error[STRSIZ]; @@ -82,6 +84,13 @@ io_SetErr(int eno, char *estr, ...) va_start(lst, estr); vsnprintf(io_Error, STRSIZ, estr, lst); va_end(lst); +} + +// mpool_inuse() Check for mpool usage +inline int +mpool_inuse() +{ + return io_mpool; }