Re: What is the canonical way to subclass Thread and make it pauseable?

2017-09-17 Thread Enjoys Math via Digitalmars-d-learn
On Sunday, 17 September 2017 at 19:57:05 UTC, Enjoys Math wrote: How do you write a pauseable Thread? Thanks. This seems to work: module data_rates_thread; import core.thread; import std.datetime; class DataRatesThread : Thread { private: uint loopSleep; bool paused;

What is the canonical way to subclass Thread and make it pauseable?

2017-09-17 Thread Enjoys Math via Digitalmars-d-learn
How do you write a pauseable Thread? Thanks.