diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-12 04:56:36 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-12 04:56:36 +0000 |
commit | 42a820099a1c03b6f0a84e4f16cb983c69309aa5 (patch) | |
tree | c466e6d1fb56662f5dadcb4cc7f24605ffdcefae /externals/grill/flext/source/flsupport.h | |
parent | 27da08004c5f024a0f35e3cb4c2b3942548ebcfa (diff) |
macros for 64-bit architectures
fixes for icc@linux
fixes for attribute editor (to deal with large dialogs)
fix lines on box text change
fix for gcc strangeness
no more static assignment of symbols (problems with Metrowerks)
fixed bugs in SIMD code for non-power-of-2 lengths
fixed shared library versioning
lock-free thread management
don't depend on ldconfig begin in the system path (should be in /sbin/..)
fixed flext::Timer::At method
new lock-free lifo and fifo
svn path=/trunk/; revision=2619
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r-- | externals/grill/flext/source/flsupport.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index 123f956a..c3141a16 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -782,40 +782,12 @@ public: } *var; }; - /*! \brief This represents an entry to the list of active method threads - \internal - */ - class FLEXT_SHARE thr_entry: - public flext_root - { - public: - thr_entry(void (*m)(thr_params *),thr_params *p,thrid_t id = GetThreadId()); - - //! \brief Check if this class represents the current thread - bool Is(thrid_t id = GetThreadId()) const { return IsThread(thrid,id); } - - FLEXT_CLASSDEF(flext_base) *This() const { return th; } - thrid_t Id() const { return thrid; } - - FLEXT_CLASSDEF(flext_base) *th; - void (*meth)(thr_params *); - thr_params *params; - thrid_t thrid; - bool active,shouldexit; -#if FLEXT_THREADS == FLEXT_THR_MP - int weight; -#endif - thr_entry *nxt; - }; - protected: static thrid_t thrhelpid; static thrid_t thrmsgid; static bool StartHelper(); - static bool StopHelper(); static void ThrHelper(void *); - static void LaunchHelper(thr_entry *e); //! the system's thread id static thrid_t thrid; // the system thread @@ -1081,6 +1053,9 @@ public: */ static void Sleep(double s); + //! Sleep for a very short amount of time, just to let other threads wake up + static void MiniSleep(); + /*! \brief Class encapsulating a timer with callback functionality. This class can either be used with FLEXT_ADDTIMER or used as a base class with an overloaded virtual Work function. */ |