comparison base/NonRTThread.cpp @ 99:9a44ccae165c

...
author Chris Cannam
date Fri, 05 May 2006 11:33:51 +0000
parents 1aebdc68ec6d
children 173b39ea0728
comparison
equal deleted inserted replaced
98:604bd4ee3ed4 99:9a44ccae165c
26 void 26 void
27 NonRTThread::start() 27 NonRTThread::start()
28 { 28 {
29 QThread::start(); 29 QThread::start();
30 30
31 #ifndef Q_WS_WIN32 31 #ifndef _WIN32
32 struct sched_param param; 32 struct sched_param param;
33 ::memset(&param, 0, sizeof(param)); 33 ::memset(&param, 0, sizeof(param));
34 34
35 if (::pthread_setschedparam(pthread_self(), SCHED_OTHER, &param)) { 35 if (::pthread_setschedparam(pthread_self(), SCHED_OTHER, &param)) {
36 ::perror("pthread_setschedparam to SCHED_OTHER failed"); 36 ::perror("pthread_setschedparam to SCHED_OTHER failed");