[fpc-devel]linux thread priority mapping

Johannes Berg johannes at sipsolutions.de
Thu Nov 13 19:43:11 CET 2003


Hi,

The current mapping appears to be {from pthread.inc}

const
{ I Don't know idle or timecritical, value is also 20, so the largest
other
  possibility is 19 (PFV) }
  Priorities: array [TThreadPriority] of Integer =
   (-20,-19,-10,9,10,19,20);
                                                                                But 20 doesn't even exist. I think more appropriate would be something like (-20, -19, -10, 0, 9, 18, 19). 
I also don't see a reason why tpNormal should be "9" instead of "0".

johannes
-- 
http://www.sipsolutions.de/
GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc
  Key-ID: 9AB78CA5 Johannes Berg <johannes at sipsolutions.de>
  Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20031113/b71ab68f/attachment.sig>


More information about the fpc-devel mailing list