Commit 2310dcd9 authored by Jussi Lindgren's avatar Jussi Lindgren

Kernel: Removed the template multicore scheduler for now

This component will be introduced by a different branch.
parent 63d5741a
......@@ -226,9 +226,9 @@ boolean CScheduler::loop(void)
System::CChrono& l_rSimulatedBoxChrono=m_vSimulatedBoxChrono[itSimulatedBox->first.second];
// we check once a cycle if the box is indeed muted.
IBox* l_pBox=m_pScenario->getBoxDetails(itSimulatedBox->first.second);
const IBox* l_pBox=m_pScenario->getBoxDetails(itSimulatedBox->first.second);
boolean l_bIsMuted = false;
if(l_pBox->hasAttribute(OV_AttributeId_Box_Muted))
if(l_pBox && l_pBox->hasAttribute(OV_AttributeId_Box_Muted))
{
CString l_sIsMuted = l_pBox->getAttributeValue(OV_AttributeId_Box_Muted);
if (l_sIsMuted==CString("true"))
......
This diff is collapsed.
#ifndef __OpenViBEKernel_Kernel_Scheduler_CSchedulerMulticore_H__
#define __OpenViBEKernel_Kernel_Scheduler_CSchedulerMulticore_H__
#include "ovkCScheduler.h"
#include <map>
#include <list>
namespace OpenViBE
{
namespace Kernel
{
class CSimulatedBox;
class CChunk;
class CPlayer;
class CSchedulerMulticore : public OpenViBE::Kernel::CScheduler
{
public:
CSchedulerMulticore(const OpenViBE::Kernel::IKernelContext& rKernelContext, OpenViBE::Kernel::CPlayer& rPlayer);
virtual ~CSchedulerMulticore(void);
virtual OpenViBE::boolean setScenario(
const OpenViBE::CIdentifier& rScenarioIdentifier);
virtual OpenViBE::boolean setFrequency(
const OpenViBE::uint64 ui64Frequency);
virtual SchedulerInitializationCode initialize(void);
virtual OpenViBE::boolean uninitialize(void);
virtual OpenViBE::boolean loop(void);
virtual OpenViBE::boolean sendInput(const OpenViBE::Kernel::CChunk& rChunk, const OpenViBE::CIdentifier& rBoxIdentifier, const OpenViBE::uint32 ui32InputIndex);
virtual OpenViBE::uint64 getCurrentTime(void) const;
virtual OpenViBE::uint64 getFrequency(void) const;
virtual OpenViBE::float64 getCPUUsage(void) const;
bool sendMessage(const IMessageWithData &msg, CIdentifier targetBox, uint32 inputIndex);
_IsDerivedFromClass_Final_(OpenViBE::Kernel::TKernelObject < OpenViBE::Kernel::IKernelObject >, OVK_ClassId_Kernel_Player_Scheduler);
CPlayer& getPlayer(void)
{
return m_rPlayer;
}
protected:
OpenViBE::Kernel::CPlayer& m_rPlayer;
OpenViBE::CIdentifier m_oScenarioIdentifier;
OpenViBE::Kernel::IScenario* m_pScenario;
OpenViBE::uint64 m_ui64Steps;
OpenViBE::uint64 m_ui64Frequency;
OpenViBE::uint64 m_ui64CurrentTime;
OpenViBE::boolean m_bIsInitialized;
std::map < std::pair < OpenViBE::int32, OpenViBE::CIdentifier>, OpenViBE::Kernel::CSimulatedBox* > m_vSimulatedBox;
std::map < OpenViBE::CIdentifier, System::CChrono > m_vSimulatedBoxChrono;
std::map < OpenViBE::CIdentifier, std::map < OpenViBE::uint32, std::list < OpenViBE::Kernel::CChunk > > > m_vSimulatedBoxInput;
private:
System::CChrono m_oBenchmarkChrono;
};
};
};
#endif // __OpenViBEKernel_Kernel_Scheduler_CSchedulerMulticore_H__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment