--- libaitsched/src/tasks.c 2013/08/26 18:48:23 1.21 +++ libaitsched/src/tasks.c 2013/09/02 11:21:22 1.22 @@ -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.22 2013/09/02 11:21:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -138,7 +138,7 @@ _sched_threadWrapper(sched_task_t *t) /* notify parent, thread is ready for execution */ pthread_testcancel(); - ret = TASK_FUNC(t)(t); + ret = schedCall(t); pthread_cleanup_pop(42); TASK_ROOT(t)->root_ret = ret; @@ -173,7 +173,7 @@ _sched_rtcWrapper(sched_task_t *t) timer_delete((timer_t) TASK_DATLEN(t)); - return func(task); + return schedCall(task); } #endif