aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_helpers.cpp
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-12-07 13:21:04 +0100
committerDan Gudmundsson <[email protected]>2018-12-07 13:21:04 +0100
commitd65ccad5d6bc71fda09ce6bf3a220a536a9a6b62 (patch)
tree29a3bbea95f446feece021bca920b377904acef6 /lib/wx/c_src/wxe_helpers.cpp
parent95f796a108c74ae133cf891c678408d001eaee47 (diff)
parent1ec09d6d239194689a95a0f0111d751d9a57e407 (diff)
downloadotp-d65ccad5d6bc71fda09ce6bf3a220a536a9a6b62.tar.gz
otp-d65ccad5d6bc71fda09ce6bf3a220a536a9a6b62.tar.bz2
otp-d65ccad5d6bc71fda09ce6bf3a220a536a9a6b62.zip
Merge branch 'dgud/wx/perf-imp' into maint
* dgud/wx/perf-imp: Don't try to wake up wx thread when not necessary
Diffstat (limited to 'lib/wx/c_src/wxe_helpers.cpp')
-rw-r--r--lib/wx/c_src/wxe_helpers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_helpers.cpp b/lib/wx/c_src/wxe_helpers.cpp
index d1f607d2af..47955494f9 100644
--- a/lib/wx/c_src/wxe_helpers.cpp
+++ b/lib/wx/c_src/wxe_helpers.cpp
@@ -101,7 +101,7 @@ wxeCommand * wxeFifo::Peek(unsigned int *i)
}
-void wxeFifo::Add(int fc, char * cbuf,int buflen, wxe_data *sd)
+int wxeFifo::Add(int fc, char * cbuf,int buflen, wxe_data *sd)
{
unsigned int pos;
wxeCommand *curr;
@@ -144,6 +144,7 @@ void wxeFifo::Add(int fc, char * cbuf,int buflen, wxe_data *sd)
} else { // No-op only PING currently
curr->buffer = NULL;
}
+ return m_n;
}
void wxeFifo::Append(wxeCommand *orig)