--- libaitsched/inc/defs.h 2012/03/13 10:01:59 1.5 +++ libaitsched/inc/defs.h 2013/06/19 00:16:35 1.10 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.5 2012/03/13 10:01:59 misho Exp $ +* $Id: defs.h,v 1.10 2013/06/19 00:16:35 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -47,10 +47,16 @@ SUCH DAMAGE. #define __DEFS_H +#ifndef STRSIZ #define STRSIZ 256 -#define KQ_EVENTS 24 -#define MAX_EVENTLO_MISS 48 +#endif +#ifndef KQ_EVENTS +#define KQ_EVENTS 32 +#endif + +#define MAX_TASK_MISS 12 + #define LOGERR { \ sched_Errno = errno; \ strlcpy(sched_Error, strerror(errno), STRSIZ); \ @@ -89,8 +95,7 @@ extern char sched_Error[]; inline void sched_SetErr(int, char *, ...); -inline sched_task_t *_sched_useTask(sched_root_task_t * __restrict root); -inline sched_task_t *_sched_unuseTask(sched_task_t * __restrict task); +void *_sched_threadWrapper(sched_task_t *); #endif