--- libaitsched/src/tasks.c 2013/08/26 18:48:23 1.21 +++ libaitsched/src/tasks.c 2013/08/27 01:27:33 1.21.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.21 2013/08/26 18:48:23 misho Exp $ +* $Id: tasks.c,v 1.21.2.1 2013/08/27 01:27:33 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -138,7 +138,8 @@ _sched_threadWrapper(sched_task_t *t) /* notify parent, thread is ready for execution */ pthread_testcancel(); - ret = TASK_FUNC(t)(t); +// ret = TASK_FUNC(t)(t); + ret = schedCall(t); pthread_cleanup_pop(42); TASK_ROOT(t)->root_ret = ret; @@ -173,7 +174,7 @@ _sched_rtcWrapper(sched_task_t *t) timer_delete((timer_t) TASK_DATLEN(t)); - return func(task); + return schedCall(task); } #endif