--- libaitsched/inc/defs.h 2014/06/05 22:37:29 1.14 +++ 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.14 2014/06/05 22:37:29 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 @@ -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 - 2015 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -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)])