[fpc-devel] pthread scheduler attributes

Henry Vermaak henry.vermaak at gmail.com
Tue Dec 10 12:19:13 CET 2013


Hello everyone

Could anyone tell me why threads are set to not inherit scheduling
parameters from the calling thread?

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/unix/cthreads.pp?view=markup#l339

This is a bit of a pain, since I can easily set the main thread
scheduling parameters by using command line options to
`start-stop-daemon` or `chrt`, but then need to use
pthread_setschedparam() manually for each thread I create.

Henry



More information about the fpc-devel mailing list