Threading

Steven Schveighoffer schveiguy at yahoo.com
Mon May 11 08:59:46 PDT 2009


On Mon, 11 May 2009 11:45:34 -0400, Brok3n Halo <X2ndshadow at hotmail.com>  
wrote:

> Thanks for the quick reply but I had the & to begain with and I was  
> getting an error.  I'm not at my computer right
> now so unfortunetly I can't see what it was, but I think it was  
> something along the lines of thread expecting a
> function but that's a delegate. I'll try and find the time to set up the  
> project on my laptop, and see what the error
> was for sure in the next few hours.

ah, different issue.

Your thread function needs to return void.  Thread should accept either a  
function pointer or a delegate.

So it should look like:

void testfunc()

And kill the return 0.

-Steve


More information about the Digitalmars-d-learn mailing list