--- libaitsched/inc/defs.h 2014/06/05 22:15:59 1.13.2.5 +++ libaitsched/inc/defs.h 2022/10/17 22:45:06 1.17 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.13.2.5 2014/06/05 22:15:59 misho Exp $ +* $Id: defs.h,v 1.17 2022/10/17 22:45:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2022 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -82,6 +82,14 @@ SUCH DAMAGE. #define __unused __attribute__((unused)) #endif +#ifndef __ELWIX +#define e_malloc malloc +#define e_calloc calloc +#define e_realloc realloc +#define e_free free +#define e_strdup strdup +#endif + #define MAX_TASK_MISS 12 #define LOGERR { \ @@ -94,6 +102,7 @@ SUCH DAMAGE. #define pthread_mutex_unlock(x) #endif +#define SCHED_QTRYLOCK(r, x) pthread_mutex_trylock(&(r)->root_mtx[(x)]) #define SCHED_QLOCK(r, x) pthread_mutex_lock(&(r)->root_mtx[(x)]) #define SCHED_QUNLOCK(r, x) pthread_mutex_unlock(&(r)->root_mtx[(x)])