How to pause a thread?

Viewed 2526

I want to draw something. Because the GUI freezes I want to draw in a thread. But sometimes I want to pause the drawing (for minutes).

Delphi's documentation says that Suspend/resume are obsolete but doesn't tell which functions replaces them.

Suspend and Resume are deprecated. Sleep and SpinWait are obviously inappropriate. I am amazed to see that Delphi does not offer such a basic property/feature.

So, how do I pause/resume a thread?

1 Answers
Related