diff options
Diffstat (limited to 'externals/grill/flext/source/flqueue.cpp')
-rwxr-xr-x | externals/grill/flext/source/flqueue.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp index a75b4a89..ee1da752 100755 --- a/externals/grill/flext/source/flqueue.cpp +++ b/externals/grill/flext/source/flqueue.cpp @@ -19,6 +19,9 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include "flext.h" #include "flinternal.h" +//! Thread id of message queue thread +flext::thrid_t flext::thrmsgid = 0; + class qmsg { public: @@ -237,8 +240,9 @@ static void Queue(qmsg *m) } #ifdef FLEXT_QTHR -void QWorker(flext::thr_params *) +void flext_base::QWorker(thr_params *) { + thrmsgid = GetThreadId(); for(;;) { qthrcond.Wait(); QWork(true,true); |