Home > Mobile >  About QThread threads in the circulation function
About QThread threads in the circulation function

Time:04-20

The use of QThread method
Qt officials recommended from one object A QObject inheritance, then the object arjun oveToThread (m_BThread);
Then send object A signal to notify BThread perform signal corresponding to the things, also BThread processes the data by sending A signal to notify the main thread some information,
If using this method, I need the demand now is in the child thread m_BThread cycle of high frequency receiving to handle data, so the continuously receives the function of data processing in front-end ports where I'm going to define, am I to go through the main thread continuously to give the child thread m_BThread to send and receive signals to implement m_BThread cycle of high frequency receiving demand of data processing so? (such obvious inefficiency, and I'm unreasonable), what method can achieve the requirements?

Using AQObject. MoveToThread (m_BThread); To implement multithreaded, but I want to cycle in m_BThread uninterrupted receiving and processing so data work, how to implement?
  •  Tags:  
  • Qt
  • Related