MT-engine has access to MT-operator

pull/1/head
Thorsten Liebig 2010-09-02 22:16:37 +02:00
parent 93fcd44f42
commit db0f4ab3e0
3 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,9 @@ Engine_Multithread* Engine_Multithread::New(const Operator_Multithread* op, unsi
return e;
}
Engine_Multithread::Engine_Multithread(const Operator_SSE_Compressed* op) : Engine_SSE_Compressed(op)
Engine_Multithread::Engine_Multithread(const Operator_Multithread* op) : Engine_SSE_Compressed(op)
{
m_Op_MT = op;
m_type = SSE;
m_barrier_VoltUpdate = 0;
m_barrier_VoltExcite = 0;

View File

@ -90,7 +90,8 @@ public:
virtual bool IterateTS(unsigned int iterTS);
protected:
Engine_Multithread(const Operator_SSE_Compressed* op);
Engine_Multithread(const Operator_Multithread* op);
const Operator_Multithread* m_Op_MT;
boost::thread_group m_thread_group;
boost::barrier *m_startBarrier, *m_stopBarrier;
boost::barrier *m_barrier_VoltUpdate, *m_barrier_VoltExcite, *m_barrier_PreVolt, *m_barrier_PostVolt;

View File

@ -24,6 +24,7 @@
class Operator_Multithread : public Operator_SSE_Compressed
{
friend class Engine_Multithread;
friend class Operator_Thread;
public:
//! Create a new operator