Passing a instance of a class to a thread via spawn?

Gary Willoughby dev at kalekold.net
Sat Jun 29 13:35:23 PDT 2013


I want to spawn a few worker threads to do some processing but i 
want the spawned function to have access to a shared object. How 
do i accomplish this?

I'm currently passing it as a parameter and getting the error: 
"Aliases to mutable thread-local data not allowed."


More information about the Digitalmars-d-learn mailing list