| 发表于:2007-07-03 20:51:484楼 得分:0 |
//启动超时管理线程 m_ptimermngrthread = afxbeginthread(runtime_class(ctimermngthread)); if (!m_ptimermngrthread) { ca_trc_err(dbgw_log_ctrl_app_frame, "启动超时管理器失败! "); return false; } m_ptimermngrthread-> m_bautodelete = false; //启动事件调度线程; m_heventdispatchthread = (handle)_beginthreadex(null,0,dispatchevent,(void *)(&m_casdb[1]),0,null); if (!m_heventdispatchthread) { ca_trc_err(dbgw_log_ctrl_app_frame, "启动事件调度失败! "); return false; } //启动消息处理线程 m_pmsgprocthread = afxbeginthread(runtime_class(cmsgprocthread), thread_priority_normal, 0, create_suspended); if (!m_pmsgprocthread) { ca_trc_err(dbgw_log_ctrl_app_frame, "启动消息处理器失败! "); return false; } m_pmsgprocthread-> m_bautodelete = false; cmsgprocthread::setcasdb(m_pmsgprocthread,m_casdb); m_pmsgprocthread-> resumethread(); | | |
|