2023-06-24 03:14:17 +02:00
|
|
|
/*
|
|
|
|
|
SCHEDULER.hpp - coordination of render activities under timing and dependency constraints
|
|
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2023, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @file scheduler.hpp
|
|
|
|
|
** Service for coordination and dispatch of render activities.
|
|
|
|
|
** The implementation of scheduling services is provided by an integration
|
|
|
|
|
** of two layers of functionality:
|
|
|
|
|
** - Layer-1 allows to enqueue and prioritise render activity records
|
|
|
|
|
** - Layer-2 connects and coordinates activities to conduct complex calculations
|
|
|
|
|
**
|
2023-07-03 18:40:37 +02:00
|
|
|
** @see SchedulerUsage_test Component integration test
|
|
|
|
|
** @see scheduler.cpp implementation details
|
|
|
|
|
** @see SchedulerInvocation Layer-1
|
|
|
|
|
** @see SchedulerCommutator Layer-2
|
2023-06-24 03:14:17 +02:00
|
|
|
**
|
|
|
|
|
** @todo WIP-WIP-WIP 6/2023 »Playback Vertical Slice«
|
|
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SRC_VAULT_GEAR_SCHEDULER_H_
|
|
|
|
|
#define SRC_VAULT_GEAR_SCHEDULER_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "lib/error.hpp"
|
|
|
|
|
#include "vault/gear/block-flow.hpp"
|
2023-06-27 03:21:10 +02:00
|
|
|
#include "vault/gear/scheduler-commutator.hpp"
|
2023-06-24 03:14:17 +02:00
|
|
|
#include "vault/gear/scheduler-invocation.hpp"
|
|
|
|
|
//#include "lib/symbol.hpp"
|
|
|
|
|
#include "lib/nocopy.hpp"
|
|
|
|
|
//#include "lib/util.hpp"
|
|
|
|
|
|
|
|
|
|
//#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace vault{
|
|
|
|
|
namespace gear {
|
|
|
|
|
|
|
|
|
|
// using util::isnil;
|
|
|
|
|
// using std::string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Schedule and coordinate render activities.
|
|
|
|
|
* @todo WIP-WIP 6/2023
|
2023-07-03 18:40:37 +02:00
|
|
|
* @see BlockFlow
|
|
|
|
|
* @see SchedulerUsage_test
|
2023-06-24 03:14:17 +02:00
|
|
|
*/
|
|
|
|
|
class Scheduler
|
|
|
|
|
{
|
2023-06-26 02:16:50 +02:00
|
|
|
SchedulerInvocation layer1_;
|
2023-06-27 03:21:10 +02:00
|
|
|
SchedulerCommutator layer2_;
|
2023-06-24 03:14:17 +02:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit
|
2023-06-26 02:16:50 +02:00
|
|
|
Scheduler()
|
|
|
|
|
: layer1_{}
|
|
|
|
|
, layer2_{}
|
2023-06-24 03:14:17 +02:00
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
// using default copy/assignment
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace vault::gear
|
|
|
|
|
#endif /*SRC_VAULT_GEAR_SCHEDULER_H_*/
|