Example on how to spawn a thread using a class method?

Gary Willoughby dev at kalekold.net
Mon Jun 17 03:22:41 PDT 2013


Anyone got an example on how to spawn a thread using a class 
method?

I want to wrap behaviour in a class and launch one of its methods 
using a thread. Once the method is running i want to interact 
with it from the main program by calling other methods which send 
the thread messages.

I'm stumbling at the first hurdle by not understanding how to use 
a class method to spawn a thread.

Any ideas appreciated.


More information about the Digitalmars-d-learn mailing list