aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flqueue.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-03-20 03:23:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-03-20 03:23:11 +0000
commitba9246441375a614630df2c44ff672f79ce11332 (patch)
tree353562abd32d46887457d028c59768a77d1e3e3a /externals/grill/flext/source/flqueue.cpp
parent2990ad18bd258168d5e26d90e3ec44274e4170a7 (diff)
""
svn path=/trunk/; revision=1442
Diffstat (limited to 'externals/grill/flext/source/flqueue.cpp')
-rwxr-xr-xexternals/grill/flext/source/flqueue.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp
index 747c4cc8..aaf82fef 100755
--- a/externals/grill/flext/source/flqueue.cpp
+++ b/externals/grill/flext/source/flqueue.cpp
@@ -84,8 +84,10 @@ static flext::ThrMutex qmutex;
static void QWork(bool qlock,bool syslock)
{
for(;;) {
- // since qcnt can only be increased from any other function than QWork
- // qc will be a minimum guaranteed number of present queue elements
+ // Since qcnt can only be increased from any other function than QWork
+ // qc will be a minimum guaranteed number of present queue elements.
+ // On the other hand, if new queue elements are added by the methods called
+ // in the loop, these will be sent in the next tick to avoid recursion overflow.
int qc = qcnt;
if(!qc) break;