mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05: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);
|
||||||
|
|
||||||
processInputQueue();
|
if (visualDataQueue.size() > 0) {
|
||||||
|
processInputQueue();
|
||||||
|
}
|
||||||
|
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
long double currentZoom = zoom;
|
long double currentZoom = zoom;
|
||||||
|
Loading…
Reference in New Issue
Block a user