aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-02-08 04:56:22 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-02-08 04:56:22 +0000
commitdc4a78b2f4d1a017ec5dd151de1ed14fe1c8e2f6 (patch)
treec1ce8f9051ea841f30d5665191a5d7177a3602a3 /externals/grill/flext/source
parent5143f2e9971ce2aa33f58383dac62e7f16514f86 (diff)
Max: use high-priority click instead of qelem for message-posting
fixed buggy unbinding of receive symbols added method for clicks into object box svn path=/trunk/; revision=2559
Diffstat (limited to 'externals/grill/flext/source')
-rwxr-xr-xexternals/grill/flext/source/flqueue.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp
index 151bcb5e..f629379b 100755
--- a/externals/grill/flext/source/flqueue.cpp
+++ b/externals/grill/flext/source/flqueue.cpp
@@ -58,7 +58,7 @@ private:
const t_atom *argv;
};
-/* \TODO This is only thread-safe if called fro one thread which need NOT be the case.
+/* \TODO This is only thread-safe if called from one thread which need NOT be the case.
Reimplement in a thread-safe manner!!!
*/
class Queue:
@@ -176,17 +176,18 @@ protected:
// must return contiguous region
t_atom *GetAtoms(int argc)
{
+ t_atom *ret;
if(atail+argc >= QUEUE_ATOMS) {
FLEXT_ASSERT(ahead > argc);
+ ret = atoms;
atail = argc;
- return atoms;
}
else {
FLEXT_ASSERT(ahead <= atail || ahead > atail+argc);
- t_atom *at = atoms+atail;
+ ret = atoms+atail;
atail += argc;
- return at;
}
+ return ret;
}
void PopAtoms(int argc)