From 562dcc336797951b2a8707413aa44177484c9f2a Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 28 Dec 2002 04:37:42 +0000 Subject: "" svn path=/trunk/; revision=309 --- externals/grill/flext/source/flthr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'externals/grill/flext/source/flthr.cpp') diff --git a/externals/grill/flext/source/flthr.cpp b/externals/grill/flext/source/flthr.cpp index e8834b76..a9a68471 100644 --- a/externals/grill/flext/source/flthr.cpp +++ b/externals/grill/flext/source/flthr.cpp @@ -20,10 +20,10 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include //! Thread id of system thread -flext::thrid_t flext::thrid; +flext::thrid_t flext::thrid = 0; //! Thread id of helper thread -flext::thrid_t flext::thrhelpid; +flext::thrid_t flext::thrhelpid = 0; /* flext::thr_entry *flext::thrhead = NULL,*flext::thrtail = NULL; @@ -42,6 +42,8 @@ static flext::ThrCond *thrhelpcond = NULL; //! Start helper thread bool flext::StartHelper() { + if(thrhelpid) return true; + bool ok = false; #if FLEXT_THREADS == FLEXT_THR_POSIX pthread_attr_t attr; -- cgit v1.2.1