--- libaitsched/inc/aitsched.h 2013/08/15 17:58:30 1.19.2.2 +++ libaitsched/inc/aitsched.h 2013/08/26 18:42:32 1.21.6.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.19.2.2 2013/08/15 17:58:30 misho Exp $ +* $Id: aitsched.h,v 1.21.6.1 2013/08/26 18:42:32 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -179,7 +179,7 @@ struct sched_Task { #define TASK_FUNC(x) (x)->task_func intptr_t task_ret; #define TASK_RET(x) (x)->task_ret - unsigned int task_flag; + unsigned long task_flag; #define TASK_FLAG(x) (x)->task_flag void *task_arg; @@ -400,7 +400,7 @@ sched_task_t *schedAlarm(sched_root_task_t * __restric * @func = task execution function * @arg = 1st func argument * @ts = timeout argument structure, minimum alarm timer resolution is 1msec! - * @opt_data = RTC ID + * @opt_data = Optional RTC ID * @opt_dlen = Optional data length * return: NULL error or !=NULL new queued task */ @@ -654,16 +654,15 @@ sched_task_t *schedCallOnce(sched_root_task_t * __rest * @root = root task * @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, size_t ss, void *opt_data, size_t opt_dlen); + size_t ss, void *opt_data, size_t opt_dlen); #define schedThreadSelf(x) schedThread(TASK_ROOT((x)), TASK_FUNC((x)), TASK_ARG((x)), \ - (TASK_FLAG((x)) & 0x1), (size_t) (TASK_FLAG((x)) >> 1), TASK_DATA((x)), TASK_DATLEN((x))) + (size_t) TASK_FLAG((x)), TASK_DATA((x)), TASK_DATLEN((x))) /* * sched_taskExit() - Exit routine for scheduler task, explicit required for thread tasks *