aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flthr.cpp
diff options
context:
space:
mode:
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;
}