aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flthr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-08-23 02:33:18 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-08-23 02:33:18 +0000
commitc4679700d4a75a1f8274880e075d6441f6f0b287 (patch)
tree940db7f2eb792ac81a97c5621e34df1ec561140e /externals/grill/flext/source/flthr.cpp
parentd2f159b856f375a2ba2fc9e720e195d2a2bf97b5 (diff)
""
svn path=/trunk/; revision=1969
Diffstat (limited to 'externals/grill/flext/source/flthr.cpp')
-rw-r--r--externals/grill/flext/source/flthr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/externals/grill/flext/source/flthr.cpp b/externals/grill/flext/source/flthr.cpp
index f16ba76d..d6bc9276 100644
--- a/externals/grill/flext/source/flthr.cpp
+++ b/externals/grill/flext/source/flthr.cpp
@@ -278,7 +278,10 @@ bool flext::StopThread(void (*meth)(thr_params *p),thr_params *p,bool wait)
if(found) {
// signal thread helper
thrhelpcond->Signal();
-
+#if 0
+ // ######################
+ // i don't think we need to wait for a single thread to stop
+ // ######################
int cnt = 0;
for(int wi = 0; wi < 100; ++wi) {
// lock and count this object's threads
@@ -296,6 +299,8 @@ bool flext::StopThread(void (*meth)(thr_params *p),thr_params *p,bool wait)
}
return cnt == 0;
+#endif
+ return true;
}
else
return false;