1 /* 2 Copyright (C) 2013-2021, Dirk Krause 3 SPDX-License-Identifier: BSD-3-Clause 4 */ 5 6 /* 7 WARNING: This file was generated by the dkct program (see 8 http://dktools.sourceforge.net/ for details). 9 Changes you make here will be lost if dkct is run again! 10 You should modify the original source and run dkct on it. 11 Original source: DkWxProcessingIdleController.cpt 12 */ 13 14 /** @file DkWxProcessingIdleController.cpp The DkWxProcessingIdleController module. 15 */ 16 17 18 #include "dk3conf.h" 19 #include <libdk3wx/DkWxProcessingIdleController.h> 20 21 22 23 24 25 26 DkWxProcessingIdleController()27DkWxProcessingIdleController::DkWxProcessingIdleController() 28 : DkWxProcessingController() 29 { 30 bWantMore = false; 31 } 32 33 34 35 void setWantMore(bool value)36DkWxProcessingIdleController::setWantMore(bool value) 37 { 38 wxMutexLocker lock(mxProtectWantMore); 39 bWantMore = value; 40 } 41 42 43 44 void resetWantMore(void)45DkWxProcessingIdleController::resetWantMore(void) 46 { 47 wxMutexLocker lock(mxProtectWantMore); 48 bWantMore = false; 49 } 50 51 52 53 bool wantMore(void)54DkWxProcessingIdleController::wantMore(void) 55 { 56 bool back = false; 57 { 58 wxMutexLocker lock(mxProtectWantMore); 59 back = bWantMore; 60 } 61 return back; 62 } 63 64 65