[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] win32 priority




int min, max;
boost::tie(min, max) = thread_priority_interval_rt();
int priority = max - 3;
priority = std::max(min, priority);


I think that I could understand.
you get min and max to THREAD_PRIORITY_IDLE(-15), THREAD_PRIORITY_TIME_CRITICAL(15)
then final result of priority would be 12

finaly thread_set_priority_rt is failing and you only get 12 base priority instead of 15 (NORMAL_PRIORITY_CLASS and THREAD_PRIORITY_TIME_CRITICAL) but if it work as I think it was intending it would get 28 which is too high (for drivers for example)(REALTIME_PRIORITY_CLASS and 12 as THREAD_PRIORITY )

victor

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/