Re: Starting threads inside class

2016-02-23 Thread Ali Çehreli via Digitalmars-d-learn
On 02/23/2016 07:31 AM, Josh wrote: > My goal with the code below is to eventually have my main communicate > with Foo and Bar classes listening for packets on a different > address/port, each in a separate thread. The main issue is that in D all data is thread-local by-default. main() cannot cr

Starting threads inside class

2016-02-23 Thread Josh via Digitalmars-d-learn
My goal with the code below is to eventually have my main communicate with Foo and Bar classes listening for packets on a different address/port, each in a separate thread. They would then communicate with Foobaz and Barbaz threads respectively to do other work. In trying to get just Foo workin