taz
-
Content Count
2 -
Joined
-
Last visited
Posts posted by taz
-
-
On 3/16/2022 at 7:56 PM, David Heffernan said:I don't think any amount of care can solve the issues there
Just set a flag and call suspend from inside the thread it self. That will make sure that the thread code is not left in an unstable state it should have the same effect as using a locked mutex from the thread.
Resuming though will have to be done from a 3rd party ee the main thread or some thread manager perhaps.
In any case, imagination is our limit.
TThread Resume Suspend deprecated (Not synchronization)
in RTL and Delphi Object Pascal
Posted
Agreed! it is always better to use existing well tested code instead of writing your own. I just added a safe use of the method to complete the picture.
Good to know, I had no idea.