summaryrefslogtreecommitdiff
path: root/library/multithreading.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:43 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:43 +0200
commit4226e548662339ea1ca37b45385a7cf9b237ff1e (patch)
tree9a3fa54b85d97f05164e41bdb96b82f748a37342 /library/multithreading.h
parent3.7 (diff)
downloadFreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.tar.gz
FreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.tar.bz2
FreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.zip
3.8
Diffstat (limited to 'library/multithreading.h')
-rw-r--r--library/multithreading.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/library/multithreading.h b/library/multithreading.h
deleted file mode 100644
index 9017bf41..00000000
--- a/library/multithreading.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// **************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de) *
-// **************************************************************************
-//
-#ifndef MULTITHREADING_H_INCLUDED
-#define MULTITHREADING_H_INCLUDED
-
-#include <wx/thread.h>
-
-class StatusHandler;
-class WorkerThread;
-
-
-//class handling execution of a method while updating the UI
-class UpdateWhileExecuting
-{
- friend class WorkerThread;
-
-public:
- UpdateWhileExecuting();
-
- virtual ~UpdateWhileExecuting();
-
- void waitUntilReady();
- void execute(StatusHandler* statusUpdater);
-
-
-private:
- //implement a longrunning method without dependencies (e.g. copy file function); share input/output parameters as instance variables
- virtual void longRunner() = 0;
-
- WorkerThread* theWorkerThread;
-
- wxMutex readyToReceiveResult;
- wxCondition receivingResult;
- bool workDone; //workaround for a bug in wxWidgets v2.8.9 class wxCondition: signals might get lost
-};
-
-#endif // MULTITHREADING_H_INCLUDED
bgstack15