Hi guys,
I have a class Test, and there is one normal function funcA(), and a slot function slot():
void Test::funcA()
{
if(m_index != 2)
{
//---------------- interrupt
//DO SOMETHINS
}
}
slot:
void Test::slot()
{
m_index = 2;
}
And now I have a question, If when I call function funcA(), and there is a signal which associate with slot: slot() emited, just after execute "if(m_index != 2)" and enter the if state, will the funcA() be interrupted at "---------------- interrupt" and begin to run slot()? if yes, there will be a unpredictable fault!
Thanks for your suggestions!
Bookmarks