This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
fileio: scheduler locks in select()
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] fileio: scheduler locks in select()
- From: "Joerg Troeger" <jtroeger at nortelnetworks dot com>
- Date: Thu, 31 Aug 2000 14:17:39 +0100
- Organization: NetServe
- Reply-To: "Joerg Troeger" <jtroeger at nortelnetworks dot com>
There seems to be something wrong with scheduler locks in select()
(file io/fileio/curent/src/select.cxx, rev. 1.1).
The function select()
1. locks the scheduler (line # 203),
2. calls the wait()-function of the condition variable "semawait" (line #
218)
3. unlocks the scheduler (line # 240)
This raises an assertion at line #756 in mutex.cxx (rev 1.8), because of
calling wait_inner() with non-zero scheduler lock.
In line # 226 of select.cxx there is a return macro without
unlocking the scheduler first.
Jörg Tröger