--- libaitsched/src/aitsched.c 2014/06/05 22:37:29 1.26 +++ libaitsched/src/aitsched.c 2015/07/22 19:50:45 1.28 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.26 2014/06/05 22:37:29 misho Exp $ +* $Id: aitsched.c,v 1.28 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 @@ -382,6 +382,7 @@ schedEnd(sched_root_task_t ** __restrict root) #ifdef HAVE_LIBPTHREAD for (i = 0; i < taskMAX; i++) { + SCHED_QTRYLOCK(*root, i); SCHED_QUNLOCK(*root, i); pthread_mutex_destroy(&(*root)->root_mtx[i]); }