--- libaitsched/inc/aitsched.h 2014/01/28 13:17:33 1.25 +++ libaitsched/inc/aitsched.h 2014/04/27 16:20:37 1.26 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.25 2014/01/28 13:17:33 misho Exp $ +* $Id: aitsched.h,v 1.26 2014/04/27 16:20:37 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -160,6 +160,7 @@ typedef struct sched_HooksTask hooks_task_t; /* task callback, like pthread callback! */ typedef void *(*sched_task_func_t)(sched_task_t * /* current task data*/); +#define SCHED_TASK_DEFINE(x) void *(x)(sched_task_t*) /* task lock helpers */ #define TASK_LOCK(x) ((x)->task_lock = 42)