//#include "net_thread.h" //#include "ui_net_thread.h" //#include "mainwindow.h" //#include "ui_mainwindow.h" //#include "canshupeizhi.h" //#include "wangluo.h" //#include "xitongshezhi.h" //#include //#include //#include "QSharedMemory" //#include //#include //#include //#include //#include "MCU_ARM.h" ////#include //延时函数 //extern int flag_thread; //MCU_ARM *MCU_ARM_1 = new MCU_ARM(); //void Delay_MSec2(unsigned int msec) //{ // QTime _Timer = QTime::currentTime().addMSecs(msec); // while( QTime::currentTime() < _Timer ) // QCoreApplication::processEvents(QEventLoop::AllEvents, 100); //} //net_Thread::net_Thread(QObject *parent) : // QThread(parent) //{ //} //void net_Thread::run() //{ // while(1) // { // QApplication::processEvents();//防止死循环。让程序处理那些还没有处理的事件,然后再把使用权返回给调用者 // if(flag_thread) // { // //emit Qshare_signal_recive(1);//发送信号 // //emit TestSignal(1); // //emit Temperature_signal(1); // } // else // { // emit Qshare_signal_recive_cspz(1); // emit TestSignal_cspz(1); // } // Delay_MSec2(10000); // } //}