aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flqueue.cpp')
-rwxr-xr-xexternals/grill/flext/source/flqueue.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp
index 37769c17..41b201d7 100755
--- a/externals/grill/flext/source/flqueue.cpp
+++ b/externals/grill/flext/source/flqueue.cpp
@@ -26,8 +26,8 @@ flext::thrid_t flext::thrmsgid = 0;
#endif
-#define QUEUE_LENGTH 512
-#define QUEUE_ATOMS 1024
+#define QUEUE_LENGTH 2048
+#define QUEUE_ATOMS 8192
class qmsg
{
@@ -197,7 +197,8 @@ static void QWork(bool syslock)
if(syslock) sys_lock();
#endif
- for(int i = 0; i < qc; ++i) {
+ // once more, because flushing in destructors could have reduced the count
+ for(qc = queue.Count(); qc--; ) {
queue.Head().Send();
queue.Pop();
} // inner loop