--- libaitsched/inc/aitsched.h 2012/08/23 02:33:12 1.16 +++ libaitsched/inc/aitsched.h 2012/09/10 15:03:08 1.16.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.16 2012/08/23 02:33:12 misho Exp $ +* $Id: aitsched.h,v 1.16.2.1 2012/09/10 15:03:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -638,14 +638,15 @@ sched_task_t *schedCallOnce(sched_root_task_t * __rest * @func = task execution function * @arg = 1st func argument * @detach = Detach thread from scheduler, if !=0 + * @ss = stack size * @opt_data = Optional data * @opt_dlen = Optional data length * return: NULL error or !=NULL new queued task */ sched_task_t *schedThread(sched_root_task_t * __restrict root, sched_task_func_t func, void *arg, - int detach, void *opt_data, size_t opt_dlen); + int detach, size_t ss, void *opt_data, size_t opt_dlen); #define schedThreadSelf(x) schedThread(TASK_ROOT((x)), TASK_FUNC((x)), TASK_ARG((x)), \ - TASK_VAL((x)), TASK_DATA((x)), TASK_DATLEN((x))) + (TASK_FLAG((x)) & 0x1), (size_t) (TASK_FLAG((x)) >> 1), TASK_DATA((x)), TASK_DATLEN((x))) /* * sched_taskExit() - Exit routine for scheduler task, explicit required for thread tasks *