aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flclass.h')
-rw-r--r--externals/grill/flext/source/flclass.h16
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);