Is this combination of signals and thread a wise idea? I am another forum someone advised someone else not to "Follow this road."
It seems to sound. Can you provide a link to another thread? Did they explain their reasoning?
Are there any potential dangerous pitfalls that I have not seen?
, . , ( , GuiClass::slot_data_changed .
, "" GUI- - QT, VTK ?
. , . :
GuiClass , . GuiClass::slot_data_changed , (private:) . GuiClass , . ( , GuiClass).
:
:
, "" GUI- - QT, VTK - ?
, . , .
? ( boost libs), ?
boost libs, , , : . join , boost:: thread_group.
:
boost::thread t1(r1, 3);
boost::thread t2(r2, 1);
boost::thread t3(r3, 2);
boost::thread t4(r4, 2);
boost::thread t5(r5, 3);
t1.join();
t2.join();
t3.join();
t4.join();
t5.join();
:
boost::thread_group processors;
processors.create_thread(r1, 3);
processors.join_all();
. - , (, , , , ..).
( ), , , ( ).
, , a, class A [ tA], b, class B [ tB] b a -.
" a -" , b a.something() a.something() tB ( B).
( a.something() tA), . , b a "run A::something()", b a " A:: something()` .
:
b a tB
a tA
a b, .something(), tA.
( A::something tA tB, , b).
, boost::asio::io_service, , , .