From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30131 invoked by alias); 19 Jan 2006 17:54:00 -0000 Received: (qmail 30113 invoked by uid 371); 19 Jan 2006 17:53:58 -0000 Date: Thu, 19 Jan 2006 17:54:00 -0000 Message-ID: <20060119175358.30111.qmail@sourceware.org> From: nickg@sourceware.org To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/kernel/current ChangeLog src/com ... Mailing-List: contact ecos-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: , Sender: ecos-cvs-owner@sourceware.org List-Subscribe: X-SW-Source: 2006/txt/msg00004.txt.bz2 List-Id: CVSROOT: /cvs/ecos Module name: ecos Changes by: nickg@sourceware.org 2006-01-19 17:53:58 Modified files: packages/kernel/current: ChangeLog packages/kernel/current/src/common: thread.cxx packages/kernel/current/src/sched: sched.cxx Log message: * src/sched/sched.cxx (thread_entry): Fixed a bug which could cause a thread to be started with a non-zero scheduler lock. The previous code only decremented it by 1 so if the previous thread was executing with the lock > 1 the thread ended up with a non-zero lock. This is fixed by decrementing the lock in a loop until it reaches zero. * src/common/thread.cxx (idle_thread_main): Added an assert for a non-zero scheduler lock.