--- libaitsched/src/aitsched.c 2024/03/20 12:52:49 1.37 +++ libaitsched/src/aitsched.c 2026/05/19 00:39:51 1.37.6.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.37 2024/03/20 12:52:49 misho Exp $ +* $Id: aitsched.c,v 1.37.6.1 2026/05/19 00:39:51 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 - 2026 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -444,7 +444,11 @@ schedCall(sched_task_t * __restrict task) if (!TASK_ISLOCKED(task)) TASK_LOCK(task); + if (task->task_root->root_hooks.hook_exec.profile) + task->task_root->root_hooks.hook_exec.profile(task->task_root, (void*) 0); ptr = task->task_func(task); + if (task->task_root->root_hooks.hook_exec.profile) + task->task_root->root_hooks.hook_exec.profile(task->task_root, (void*) 1); TASK_UNLOCK(task); return ptr;