priority inversion in _Thread_queue_Enqueue_priority() ?
Andrew Klossner
andrew at pogo.wv.tek.com
Fri Feb 4 01:11:34 UTC 2000
In exec/score/src/threadq.c: _Thread_queue_Enqueue_priority, we have:
Priority_Control search_priority;
...
search_priority = PRIORITY_MINIMUM - 1;
Priority_Control is unsigned. PRIORITY_MINIMUM is 0. This ends up
assigning (with my compiler) UINT_MAX to search_priority. With all
the gotos in this function, I'm not confident that I understand all
the ramifications. Is the way the code is expected to work?
-=- Andrew Klossner (andrew at pogo.wv.tek.com)
More information about the users
mailing list