mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-05 14:47:52 -04:00
Avoid extra locking if queue is empty
This commit is contained in:
parent
b822704b0c
commit
71383b4cb6
@ -109,7 +109,9 @@ void WaterfallCanvas::processInputQueue() {
|
|||||||
void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
|
||||||
|
if (visualDataQueue.size() > 0) {
|
||||||
processInputQueue();
|
processInputQueue();
|
||||||
|
}
|
||||||
|
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
long double currentZoom = zoom;
|
long double currentZoom = zoom;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user