| 1 |
/* |
| 2 |
* Copyright (C) 2013-2015, 2019 by the Konclude Developer Team. |
| 3 |
* |
| 4 |
* This file is part of the reasoning system Konclude. |
| 5 |
* For details and support, see <http://konclude.com/>. |
| 6 |
* |
| 7 |
* Konclude is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of version 3 of the GNU Lesser General Public |
| 9 |
* License (LGPLv3) as published by the Free Software Foundation. |
| 10 |
* |
| 11 |
* Konclude is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU (Lesser) General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU (Lesser) General Public |
| 17 |
* License along with Konclude. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
* |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef KONCLUDE_SCHEDULER_SCHEDULERSETTINGS |
| 22 |
#define KONCLUDE_SCHEDULER_SCHEDULERSETTINGS |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
#include <QtGlobal> |
| 26 |
#include <QEvent> |
| 27 |
|
| 28 |
// Namespace includes |
| 29 |
|
| 30 |
|
| 31 |
// Other includes |
| 32 |
#include "Utilities/UtilitiesSettings.h" |
| 33 |
|
| 34 |
// Logger includes |
| 35 |
|
| 36 |
|
| 37 |
namespace Konclude { |
| 38 |
|
| 39 |
using namespace Utilities; |
| 40 |
|
| 41 |
namespace Scheduler { |
| 42 |
|
| 43 |
|
| 44 |
/*! |
| 45 |
* |
| 46 |
* \file SchedulerSettings |
| 47 |
* \author Andreas Steigmiller |
| 48 |
* \version 0.1 |
| 49 |
* \brief TODO |
| 50 |
* |
| 51 |
*/ |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
// forward declarations |
| 56 |
|
| 57 |
class CTaskReserveArrayQueue; |
| 58 |
class CTaskReserveArrayQueueConsumer; |
| 59 |
class CTaskReserveMultiArrayQueue; |
| 60 |
class CTaskReserveMultiArrayQueueConsumer; |
| 61 |
class CTaskSchedulerCommunicator; |
| 62 |
class CTaskEventHandlerBasedProcessor; |
| 63 |
class CTaskEventHandlerBasedScheduler; |
| 64 |
class CTaskEventHandlerBasedDistributionCompletor; |
| 65 |
|
| 66 |
template<class T> class CProcessingQueueExtensionIterator; |
| 67 |
template<class T> class CProcessingQueueIterator; |
| 68 |
template<class T> class CProcessingQueue; |
| 69 |
template<class T> class CProcessingQueueExtension; |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
// Custom Events >= 2000 |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
static const cint64 CREQUESTPROCESSTASKEVENTTYPEID = 5001; |
| 79 |
static const cint64 CREQUESTSCHEDULETASKEVENTTYPEID = 5002; |
| 80 |
static const cint64 CRESPONSESCHEDULETASKEVENTTYPEID = 5003; |
| 81 |
static const cint64 CSENDTASKCOMPLETEEVENTTYPEID = 5004; |
| 82 |
static const cint64 CSENDTASKPROCESSEVENTTYPEID = 5005; |
| 83 |
static const cint64 CSENDTASKSCHEDULEEVENTTYPEID = 5006; |
| 84 |
static const cint64 CTASKADDITIONALALLOCATIONEVENTTYPEID = 5007; |
| 85 |
static const cint64 CDISTRIBUTEMEMORYPOOLEVENTTYPEID = 5008; |
| 86 |
static const cint64 CTASKDISPENSENOTIFICATIONEVENTTYPEID = 5009; |
| 87 |
static const cint64 CUPDATETASKSTATUSEVENTTYPEID = 5010; |
| 88 |
static const cint64 CTASKSTATUSUPDATEDEVENTTYPEID = 5011; |
| 89 |
static const cint64 CALIGNEDUPDATETASKSTATUSEVENTTYPEID = 5012; |
| 90 |
static const cint64 CCRITICALSCHEDULETASKEVENTTYPEID = 5013; |
| 91 |
|
| 92 |
#ifndef KONCLUDE_FORCE_STATISTIC_DEACTIVATED |
| 93 |
#define KONCLUDE_SCHEDULER_TASK_THREADS_TIME_STATISTICS |
| 94 |
#define KONCLUDE_SCHEDULER_TASK_PROCESSING_STATISTICS |
| 95 |
#endif |
| 96 |
|
| 97 |
|
| 98 |
}; // end namespace Scheduler |
| 99 |
|
| 100 |
}; // end namespace Konclude |
| 101 |
|
| 102 |
|
| 103 |
#endif // end KONCLUDE_SCHEDULER_SCHEDULERSETTINGS |