--- libelwix/inc/elwix.h 2025/08/21 15:40:07 1.25.12.2 +++ libelwix/inc/elwix.h 2026/03/31 15:29:12 1.31 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.25.12.2 2025/08/21 15:40:07 misho Exp $ +* $Id: elwix.h,v 1.31 2026/03/31 15:29:12 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2025 +Copyright 2004 - 2026 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -51,10 +51,12 @@ SUCH DAMAGE. #include #include #include +#include #include #include #include #include +#include #ifndef __linux__ #include #include @@ -82,6 +84,8 @@ SUCH DAMAGE. #include #include #include +#include +#include #ifndef STRSIZ @@ -180,12 +184,16 @@ SUCH DAMAGE. #define VACUUM_BETWEEN 2 -extern int __isthreaded; +typedef struct { + E_ATOMIC_ALIGN int value; +} e_atomic_int; #ifdef __cplusplus extern "C" { #endif +extern int __isthreaded; + // elwix_SetProg() Set program memory pool name void elwix_SetProg(const char *csProgName); // elwix_GetProg() Get program memory pool name @@ -291,6 +299,10 @@ extern int elwix_Debug; #define ELWIX_DEBUG_LOCK 0x20 #define ELWIX_DEBUG_SYS 0x40 #define ELWIX_DEBUG_NET 0x80 +#define ELWIX_DEBUG_1 0x100 +#define ELWIX_DEBUG_2 0x200 +#define ELWIX_DEBUG_3 0x400 +#define ELWIX_DEBUG_4 0x800 #define ELWIX_DEBUG_ANY 0xFFFFFFFF #define EDBG(x) (elwix_Debug & (x))