aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_helpers.h
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-10-20 10:19:16 +0200
committerDan Gudmundsson <[email protected]>2015-11-23 14:39:57 +0100
commite732293edc5a970885d9eb362dcaddf3548f84a4 (patch)
treeae21baeb0c8d65241b7dd55eb02130174bfa00ec /lib/wx/c_src/wxe_helpers.h
parentba77723f5d81e9e52fb4e2abdffc70ccd3d3e8de (diff)
downloadotp-e732293edc5a970885d9eb362dcaddf3548f84a4.tar.gz
otp-e732293edc5a970885d9eb362dcaddf3548f84a4.tar.bz2
otp-e732293edc5a970885d9eb362dcaddf3548f84a4.zip
wx: Use only one ring buffer for command queue
Avoid copying between command queues, cleaner, faster and safer implementation.
Diffstat (limited to 'lib/wx/c_src/wxe_helpers.h')
-rw-r--r--lib/wx/c_src/wxe_helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wx/c_src/wxe_helpers.h b/lib/wx/c_src/wxe_helpers.h
index 4f9d9ca9c3..ff949e332b 100644
--- a/lib/wx/c_src/wxe_helpers.h
+++ b/lib/wx/c_src/wxe_helpers.h
@@ -67,9 +67,13 @@ class wxeFifo {
void Append(wxeCommand *Other);
wxeCommand * Get();
+ wxeCommand * Peek(unsigned int *item);
void Realloc();
+ void Strip();
+ unsigned int Cleanup(unsigned int peek=0);
+ unsigned int cb_start;
unsigned int m_max;
unsigned int m_first;
unsigned int m_n;