aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flthr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-05 04:40:52 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-05 04:40:52 +0000
commit4215d864c0baf21a4f67ed3fe44e642b84708197 (patch)
tree73adca0e1fd7fd30a0a1977e88fd14b3233b5cbb /externals/grill/flext/source/flthr.cpp
parent69f7f0c33559cf90e7d6ce7c0ddbd5501af7b1de (diff)
""
svn path=/trunk/; revision=453
Diffstat (limited to 'externals/grill/flext/source/flthr.cpp')
-rw-r--r--externals/grill/flext/source/flthr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flthr.cpp b/externals/grill/flext/source/flthr.cpp
index 9ad4d75f..d2430041 100644
--- a/externals/grill/flext/source/flthr.cpp
+++ b/externals/grill/flext/source/flthr.cpp
@@ -65,6 +65,12 @@ bool flext::StartHelper()
#endif
if(!ok)
error("flext - Could not launch helper thread!");
+ else {
+ // now we have to wait for thread helper to initialize
+ while(!thrhelpid || !thrhelpcond) Sleep(0.001);
+
+ // we are reading for threading now!
+ }
return ok;
}