--- libaitsched/inc/aitsched.h 2026/05/19 00:39:51 1.34.2.1 +++ libaitsched/inc/aitsched.h 2026/05/20 03:07:51 1.35.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.34.2.1 2026/05/19 00:39:51 misho Exp $ +* $Id: aitsched.h,v 1.35.2.1 2026/05/20 03:07:51 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -57,6 +57,14 @@ SUCH DAMAGE. #ifdef EVFILT_LIO #include #endif +#ifdef ATOMIC_SUPPORT +#ifndef __cplusplus + #include +#else + #include + #define _Atomic(X) std::atomic +#endif +#endif /* criteria type */ @@ -146,7 +154,7 @@ struct sched_HooksTask { sched_hook_func_t exception; /* condition(sched_root_task_t *root, intptr_t *stopValue) -> int */ sched_hook_func_t condition; - /* profile(sched_root_task_t *root, intptr_t *stageValue) -> int */ + /* profile(sched_task_t *root, intptr_t *stageValue) -> int */ sched_hook_func_t profile; } hook_exec; struct {