--- libaitsched/inc/defs.h 2015/07/02 22:45:00 1.15 +++ libaitsched/inc/defs.h 2015/07/22 19:50:45 1.16 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.15 2015/07/02 22:45:00 misho Exp $ +* $Id: defs.h,v 1.16 2015/07/22 19:50:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -94,6 +94,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)])