--- libaitsched/inc/aitsched.h 2012/03/13 10:01:59 1.6 +++ libaitsched/inc/aitsched.h 2012/05/14 12:09:12 1.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.6 2012/03/13 10:01:59 misho Exp $ +* $Id: aitsched.h,v 1.7 2012/05/14 12:09:12 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -182,6 +182,7 @@ struct sched_RootTask { #define ROOT_DATA(x) (x)->root_data.iov_base #define ROOT_DATLEN(x) (x)->root_data.iov_len }; +#define ROOT_QUEUE_EMPTY(x, _q) TAILQ_EMPTY(&((x)->root_##_q)) inline int sched_GetErrno(); @@ -250,7 +251,7 @@ inline void *schedFetch(sched_root_task_t * __restrict * @killState = kill condition variable, if !=0 stop scheduler loop * return: -1 error or 0 ok */ -int schedRun(sched_root_task_t * __restrict root, volatile intptr_t * __restrict killState); +int schedRun(sched_root_task_t *root, volatile intptr_t * __restrict killState); /* * schedCancel() - Cancel task from scheduler *