--- libelwix/inc/elwix.h 2024/12/05 12:33:49 1.25.10.1 +++ libelwix/inc/elwix.h 2025/09/26 15:51:31 1.27.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.25.10.1 2024/12/05 12:33:49 misho Exp $ +* $Id: elwix.h,v 1.27.2.1 2025/09/26 15:51:31 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 - 2024 +Copyright 2004 - 2025 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -51,6 +51,7 @@ SUCH DAMAGE. #include #include #include +#include #include #include #include @@ -82,6 +83,7 @@ SUCH DAMAGE. #include #include #include +#include #ifndef STRSIZ @@ -180,12 +182,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 @@ -310,7 +316,7 @@ extern int elwix_Debug; #define ELOGGER(x, fmt, ...) do { assert((fmt)); \ char __str[BUFSIZ] = { 0 }; \ snprintf(__str, sizeof __str, (fmt), ##__VA_ARGS__); \ - syslog((x), "Logger:%s(%d): %s\n", \ + syslog((x), "Log:%s(%d): %s\n", \ __func__, __LINE__, __str); \ } while (0)