You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB
C++

//#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 <QDebug>
//#include <QTime>
//#include "QSharedMemory"
//#include <QFileInfo>
//#include <QMessageBox>
//#include <QFileDialog>
//#include <QBuffer>
//#include "MCU_ARM.h"
////#include <synchapi.h>//延时函数
//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);
// }
//}