From 8c02a01bc617e99e1c6b7627676402bb276bac80 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 25 Feb 2015 14:09:38 +0100 Subject: Remove CAsyncAlgorithm::timedJoin It is currently unused, and its current implementation is not very portable. --- include/astra/AsyncAlgorithm.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/astra/AsyncAlgorithm.h') diff --git a/include/astra/AsyncAlgorithm.h b/include/astra/AsyncAlgorithm.h index 2d5d31e..36e2184 100644 --- a/include/astra/AsyncAlgorithm.h +++ b/include/astra/AsyncAlgorithm.h @@ -75,10 +75,6 @@ public: */ virtual void run(int _iNrIterations = 0); - /** Wait for thread to complete and delete thread. - */ - virtual void timedJoin(int _milliseconds); - /** Return pointer to the wrapped algorithm. */ CAlgorithm* getWrappedAlgorithm() { return m_pAlg; } -- cgit v1.2.3 From 9a60acfc18e72b8aacdc7388617443e9854f4d3b Mon Sep 17 00:00:00 2001 From: Daan Pelt Date: Wed, 25 Feb 2015 12:02:16 +0100 Subject: Moved pthreads defines to Globals.h --- include/astra/AsyncAlgorithm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/astra/AsyncAlgorithm.h') diff --git a/include/astra/AsyncAlgorithm.h b/include/astra/AsyncAlgorithm.h index 36e2184..a3157fc 100644 --- a/include/astra/AsyncAlgorithm.h +++ b/include/astra/AsyncAlgorithm.h @@ -32,14 +32,12 @@ $Id$ #include "Config.h" #include "Algorithm.h" -#ifdef __linux__ -#define USE_PTHREADS +#ifdef USE_PTHREADS #include #else #include #endif - namespace astra { /** -- cgit v1.2.3