2019年11月8日
摘要: nanosleep,sleephttps://www.jianshu.com/p/42abcc2c9e50 阅读全文
posted @ 2019-11-08 14:32 邶风 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 频繁主动调用QCoreApplication::processEvents() https://blog.csdn.net/lixiangmaty/article/details/79452553https://www.cnblogs.com/findumars/p/5607683.html UI线 阅读全文
posted @ 2019-11-08 14:30 邶风 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/xiezhongyuan07/article/details/81169583 https://www.cnblogs.com/yangjunhe460/p/10289613.html QTest::qSleep(250); //unrespons 阅读全文
posted @ 2019-11-08 14:26 邶风 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 串口的write跟read在同一线程中执行如果此时正在write,但是收到readyRead()信号,会中断write,去执行readyRead()信号触发的槽函数。 在多线程串口通信中,如果设计不好,会造成访问缓冲指令时,线程锁,死锁。 对QSerialPort的读写操作需要在同一个线程,不能跨线 阅读全文
posted @ 2019-11-08 12:59 邶风 阅读(662) 评论(0) 推荐(0) 编辑