diff options
Diffstat (limited to 'support/dktools/DkWxProcessingController.h')
-rw-r--r-- | support/dktools/DkWxProcessingController.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/support/dktools/DkWxProcessingController.h b/support/dktools/DkWxProcessingController.h deleted file mode 100644 index 6195961c4c..0000000000 --- a/support/dktools/DkWxProcessingController.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright (C) 2013-2020, Dirk Krause -SPDX-License-Identifier: BSD-3-Clause -*/ - -/* - WARNING: This file was generated by the dkct program (see - http://dktools.sourceforge.net/ for details). - Changes you make here will be lost if dkct is run again! - You should modify the original source and run dkct on it. - Original source: DkWxProcessingController.cpt -*/ - -/** @file DkWxProcessingController.h Header file for the DkWxProcessingController module. -*/ - -#ifndef DKWXPROCESSINGCONTROLLER_H_INCLUDED -/** Avoid multiple inclusions. */ -#define DKWXPROCESSINGCONTROLLER_H_INCLUDED 1 - - -#line 8 "DkWxProcessingController.cpt" - -#include <dk3conf.h> -#include <dk3types.h> -#include <dk3const.h> - -#include <wx/wxprec.h> -#ifdef __BORLANDC__ -#pragma hdrstop -#endif -#ifndef WX_PRECOMP -#include <wx/wx.h> -#endif -#include <wx/thread.h> - - - -/** Protect code from concurrent execution, mainly for timer handlers. - In contrast to a critical section which delays execution of - code to avoid concurrent access to data this class skips - the execution of concurrent code. -*/ -class DkWxProcessingController -{ - protected: - - /** Prevent concurrent access. - */ - wxMutex mxProtectProcessing; - - /** Flag: Processing is running. - */ - bool bIsRunning; - - public: - /** Default constructor. - */ - DkWxProcessingController(); - - /** Begin processing if not already running. - If the function returns true you must invoke endProcessing() - when your processing is finished. - @return true to start processing, false if processing is running. - */ - bool canBeginProcessing(void); - - /** End processing. Call this function after finishing the - critical code. - */ - void endProcessing(void); -}; - - -#endif |