OpenNI / OpenNI2

OpenNI2
Apache License 2.0
432 stars 893 forks source link

Correct pthread_setschedparam usage errors. #2

Closed SpecLad closed 10 years ago

SpecLad commented 11 years ago

The documented name for the priority scheduling parameter is sched_priority (see, e.g. http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_setschedparam.html, http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_setschedparam.3.html).

pthread_setschedparam reports the error code via the return value, not errno.

SpecLad commented 10 years ago

This doesn't apply cleanly anymore, and I no longer care enough to fix it.