Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualSeraphLance

Posted 05 September 2012 - 06:58 PM

Looks like you're sharing colx and coly between all the threads, creating a race condition. Try making those variables local within the lambda.

That's exactly the kind of thing I figured it'd be. I already fixed that with the d float, but hadn't noticed colx and coly. I'll fix those tonight and see if that solves the problem. Thanks.

EDIT: That fixed the problem. I'd figured it was related to some shared data, but I was having trouble finding it. Thanks again for the help!

#1SeraphLance

Posted 05 September 2012 - 12:30 PM

Looks like you're sharing colx and coly between all the threads, creating a race condition. Try making those variables local within the lambda.

That's exactly the kind of thing I figured it'd be. I already fixed that with the d float, but hadn't noticed colx and coly. I'll fix those tonight and see if that solves the problem. Thanks.

PARTNERS