MT-engine has access to MT-operator
parent
93fcd44f42
commit
db0f4ab3e0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
class Operator_Multithread : public Operator_SSE_Compressed
|
||||
{
|
||||
friend class Engine_Multithread;
|
||||
friend class Operator_Thread;
|
||||
public:
|
||||
//! Create a new operator
|
||||
|
|
Loading…
Reference in New Issue