diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-02 17:32:50 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-02 17:32:50 +0000 |
commit | 4985ae92eea0eb7609a2449d7e147f69b7134b50 (patch) | |
tree | 83343cd73cec64d66b4a347612f8937643c04918 /externals/grill/flext/source/flclass.h | |
parent | 7017ea71b842451548451125d10acd5c27086e3b (diff) |
*** empty log message ***
svn path=/trunk/; revision=265
Diffstat (limited to 'externals/grill/flext/source/flclass.h')
-rw-r--r-- | externals/grill/flext/source/flclass.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/externals/grill/flext/source/flclass.h b/externals/grill/flext/source/flclass.h index f9b3deec..8c14e6b8 100644 --- a/externals/grill/flext/source/flclass.h +++ b/externals/grill/flext/source/flclass.h @@ -20,11 +20,6 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include "flbase.h" #include "flsupport.h" -#ifdef FLEXT_THREADS -#include <pthread.h> -#include <sched.h> -#endif - #ifdef _MSC_VER #pragma warning(disable: 4786) #endif @@ -410,6 +405,10 @@ public: typedef pthread_t thrid_t; + /*! \brief Get current thread id + */ + static thrid_t GetThreadId(); + /*! \brief Increase/Decrease priority of a thread */ static bool ChangePriority(int dp,thrid_t thr = GetThreadId()); @@ -422,10 +421,6 @@ public: */ static bool SetPriority(int p,thrid_t thr = GetThreadId()); - /*! \brief Get current thread id - */ - static thrid_t GetThreadId(); - #endif // FLEXT_THREADS @@ -442,7 +437,8 @@ protected: /*! \brief Thread parameters \internal */ - class thr_params + class thr_params: + public flext { public: thr_params(flext_base *c,int n = 1); |