--- libaitsched/src/aitsched.c 2014/06/03 20:39:54 1.25.2.6 +++ libaitsched/src/aitsched.c 2015/07/19 23:19:41 1.27.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.25.2.6 2014/06/03 20:39:54 misho Exp $ +* $Id: aitsched.c,v 1.27.4.1 2015/07/19 23:19:41 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]); }