Is it possible to set scheduling policy in Qthread ?
Im using ubuntu, and I'm confident that qthreads are implemented using pthreads, but I don't know how to acces pthreads attribs for advanced tuning like setting scheduling policy.
With posix classes I would use:
#include <pthread.h>
pthread_attr_t attrib;
pthread_attr_init(&attrib);
int ret = pthread_attr_setschedpolicy(&attrib, SCHED_RR);
#include <pthread.h>
pthread_attr_t attrib;
pthread_attr_init(&attrib);
int ret = pthread_attr_setschedpolicy(&attrib, SCHED_RR);
To copy to clipboard, switch view to plain text mode
but I don't figure out how to do this with Qthreads.
Bookmarks