再切换线程时需要注意格式:
大函数嵌入子函数,切换线程函数
void __pro_keep()
{
ezxml_t xmlchild;
ezxml_t xmlroot;
U8 recvbuf[256];
xmlroot = ezxml_child(m_streamdata.xml, "EXIT");
xmlchild = ezxml_child(xmlroot, "INITIO");
if (xmlchild)
{
set_init_inthread(TRUE);
cmd_INIT_IO(xmlchild, m_threaddata.param, m_threaddata.xx);
}
xmlchild = ezxml_child(xmlroot,"MSG");
pro_SendRecv(xmlchild, recvbuf);
if (m_autoKeep == TRUE)
AutoKeepOn();
SetThreadCustom(0x7001, &pro_keep);
SetThreadID(0x7001);
/*
MsgBox(BUTTON_OK, trr("Note"), trr("Processing please wait..."), 3);
Debug_vc("\r\n!!!!!!!!!!!!%04X\r\n", GetThreadID());
removeMsg(); */
}
static void _pro_backkeep()
{
SetThreadCustom(0x7001, &__pro_keep);
SetThreadID(0x7001);
GoBackDec();
}