How can i make a new thread for my plugin

For any question about plugins!
Post Reply
Authur
Posts: 5
Joined: Wed Aug 05, 2020 8:48 am

How can i make a new thread for my plugin

Post by Authur »

Hi
I develop a plugin which use the 'createprocess' to call the cmd for realizing the function,however when i use the 'waitforsingleobject' to monitor that if the cmd has exited,the program always become no responding,so i think that i should create new thread for the plugin,but i don't konw how to do that,if everyone know,please tell me!
Thanks a lot
Authur
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How can i make a new thread for my plugin

Post by daniel »

You could either use the "Qt Concurrent" framework (see https://doc.qt.io/qt-5/qtconcurrent-index.html).

Or create a QThread, etc.
Daniel, CloudCompare admin
Authur
Posts: 5
Joined: Wed Aug 05, 2020 8:48 am

Re: How can i make a new thread for my plugin

Post by Authur »

ok!thanks a lot!
Post Reply