Jerry,let Tom go!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

再切换线程时需要注意格式:

大函数嵌入子函数,切换线程函数
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();
}

posted on 2012-06-16 13:59  老王车辆诊断解码  阅读(896)  评论(0编辑  收藏  举报