mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-04 22:27:49 -04: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;
|
delete t_SDR;
|
||||||
t_SDR = NULL;
|
t_SDR = NULL;
|
||||||
}
|
}
|
||||||
|
t_SDR->SetPriority(80);
|
||||||
|
|
||||||
threadQueueAudio = new AudioThreadQueue(this);
|
threadQueueAudio = new AudioThreadQueue(this);
|
||||||
t_Audio = new AudioThread(threadQueueAudio);
|
t_Audio = new AudioThread(threadQueueAudio);
|
||||||
@ -73,6 +74,7 @@ AppFrame::AppFrame() :
|
|||||||
delete t_Audio;
|
delete t_Audio;
|
||||||
t_Audio = NULL;
|
t_Audio = NULL;
|
||||||
}
|
}
|
||||||
|
t_Audio->SetPriority(80);
|
||||||
|
|
||||||
demodulatorTest = demodMgr.newThread(this);
|
demodulatorTest = demodMgr.newThread(this);
|
||||||
demodulatorTest->params.audioQueue = threadQueueAudio;
|
demodulatorTest->params.audioQueue = threadQueueAudio;
|
||||||
@ -162,6 +164,8 @@ void AppFrame::OnThread(wxCommandEvent& event) {
|
|||||||
|
|
||||||
void AppFrame::OnIdle(wxIdleEvent& event) {
|
void AppFrame::OnIdle(wxIdleEvent& event) {
|
||||||
|
|
||||||
|
Sleep(10);
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ public:
|
|||||||
|
|
||||||
bool run() {
|
bool run() {
|
||||||
init();
|
init();
|
||||||
|
|
||||||
if (t_Demod->Run() != wxTHREAD_NO_ERROR) {
|
if (t_Demod->Run() != wxTHREAD_NO_ERROR) {
|
||||||
wxLogError
|
wxLogError
|
||||||
("Can't create the Demodulator thread!");
|
("Can't create the Demodulator thread!");
|
||||||
@ -39,6 +38,7 @@ public:
|
|||||||
threadQueueDemod = NULL;
|
threadQueueDemod = NULL;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
t_Demod->SetPriority(80);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user