This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fileio: scheduler locks in select()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]