Comment 2 for bug 835138

Revision history for this message
Till Straumann (strauman) wrote :

The existing code determines the available priority range once and caches the return values of sched_get_priority_min()/sched_get_priority_max().

The proposed fix (implemented by the patch) creates a helper thread (this happens only a single time, i.e., when the the epicsThreads facility is initialized) which takes the above min/max values as a starting point for a binary search for the maximal priority that can be set on the system.