@yzaroui I'v encoutered GUI freezing when forgot to add on_NumberChanged SLOT to public section and program did nothing before i fixed it) But its very usefull video as 4 Beginner like me
great tutorial, but the placement of your mutex does not make sense there. your mutex is created on the stack, so each thread will have it's own mutex instance. Which is like no mutex at all.
Your mutex doesn't make sense, you seem to be protecting your stop boolean, but only the thread itself uses the lock, the main thread which is changing the value of the boolean isn't using the lock (really, you should have a member function to call to set the boolean, which itself can use the mutex). Furthermore, for such a simple operation of checking a boolean, is a mutex really required? I would of thought not.
This has been flagged as spam show
Great ! Thanks for this tutorial.
However, I have to add usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
This has been flagged as spam show
Great ! Thanks for this tutorial.
However, I have to add thread->usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
This has been flagged as spam show
Great ! Thanks for this tutorial.
However, I have to add thread->usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
This has been flagged as spam show
Great ! Thanks for this tutorial.
However, I have to add thread->usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
This has been flagged as spam show
Great ! Thanks for this tutorial.
However, I have to add thread->usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
Great ! Thanks for this tutorial.
However, I have to add thread->usleep(100) (smaller than msleep()) or the worker thread will block my main GUI.
dorekofu87 2 weeks ago
simply great!! you are now my first source regarding qt
ardav 1 month ago
Great video. Helped me resolve threading issue. Thank you.
alekgb 3 months ago
Small Note:
It's better to set the "Stop" boolean to "false" in the MyThread constructor,
Just to guarantee that the loop will work on the program kick-off.
Thanks for the tutorial :)
kalgorithmist 6 months ago
I don't usually comment on youtube videos, but I've got to thank you very much for this!
GREAT tutorial, it's 1:12 am and my program is working now!
marcelobesch 7 months ago
Great tutorial series, thank you!
I have a question though : Is it just me or the GUI freezes if you don't use the sleep?
yzaroui 8 months ago
@yzaroui I'v encoutered GUI freezing when forgot to add on_NumberChanged SLOT to public section and program did nothing before i fixed it) But its very usefull video as 4 Beginner like me
NeptuneCasto 5 months ago
great tutorial video
thank you very much
mahmudarslan19 8 months ago
great tutorial, but the placement of your mutex does not make sense there. your mutex is created on the stack, so each thread will have it's own mutex instance. Which is like no mutex at all.
don9721 10 months ago
thanksssss
naturalpsychic123 1 year ago
Your mutex doesn't make sense, you seem to be protecting your stop boolean, but only the thread itself uses the lock, the main thread which is changing the value of the boolean isn't using the lock (really, you should have a member function to call to set the boolean, which itself can use the mutex). Furthermore, for such a simple operation of checking a boolean, is a mutex really required? I would of thought not.
googletitsfost 1 year ago
@googletitsfost - good catch I really struggled to come up with a good example, seems a better one is needed.
VoidRealms 1 year ago