mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
Thread priority bump, main thread sleep
This commit is contained in:
parent
054ac3f840
commit
9150439283
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user