Thread priority bump, main thread sleep

This commit is contained in:
Charles J. Cliffe 2014-11-18 19:02:07 -05:00
parent 054ac3f840
commit 9150439283
2 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,7 @@ AppFrame::AppFrame() :
delete t_SDR;
t_SDR = NULL;
}
t_SDR->SetPriority(80);
threadQueueAudio = new AudioThreadQueue(this);
t_Audio = new AudioThread(threadQueueAudio);
@ -73,6 +74,7 @@ AppFrame::AppFrame() :
delete t_Audio;
t_Audio = NULL;
}
t_Audio->SetPriority(80);
demodulatorTest = demodMgr.newThread(this);
demodulatorTest->params.audioQueue = threadQueueAudio;
@ -162,6 +164,8 @@ void AppFrame::OnThread(wxCommandEvent& event) {
void AppFrame::OnIdle(wxIdleEvent& event) {
Sleep(10);
event.Skip();
}

View File

@ -29,7 +29,6 @@ public:
bool run() {
init();
if (t_Demod->Run() != wxTHREAD_NO_ERROR) {
wxLogError
("Can't create the Demodulator thread!");
@ -39,6 +38,7 @@ public:
threadQueueDemod = NULL;
return false;
}
t_Demod->SetPriority(80);
return true;
}