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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp
index d3bc9a13..37769c17 100755
--- a/externals/grill/flext/source/flqueue.cpp
+++ b/externals/grill/flext/source/flqueue.cpp
@@ -26,7 +26,7 @@ flext::thrid_t flext::thrmsgid = 0;
#endif
-#define QUEUE_LENGTH 256
+#define QUEUE_LENGTH 512
#define QUEUE_ATOMS 1024
class qmsg
@@ -146,13 +146,13 @@ protected:
// must return contiguous region
t_atom *GetAtoms(int argc)
{
- // \todo check for available space
-
if(atail+argc >= QUEUE_ATOMS) {
+ FLEXT_ASSERT(ahead > argc);
atail = argc;
return atoms;
}
else {
+ FLEXT_ASSERT(ahead <= atail || ahead > atail+argc);
t_atom *at = atoms+atail;
atail += argc;
return at;