Thread stuck at yield (Not sure if this is a bug)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Thread stuck at yield (Not sure if this is a bug)

Postby KingSnail » Sat Apr 30, 2011 1:11 pm

Hey Julio,
I took your recommendation and had a look a dSimulation and dThread and indeed it solved the problem I had before (with timestep)
but I had to compile dThread and change private to public and put a new line

m_taskSuspendedCount = 0;

before launching thread.
otherwise the thread was stuck in a yield loop. it seems that dThread is constructed with m_taskSuspendedCount(1) as default.

If this is not a bug and I was doing something wrong then please delete this thread.
Working on an MMORPG powered by Newton Dynamics.
User avatar
KingSnail
 
Posts: 112
Joined: Sat Jan 02, 2010 9:55 pm

Re: Thread stuck at yield (Not sure if this is a bug)

Postby Julio Jerez » Sat Apr 30, 2011 2:42 pm

It is alright to change it to so wjat you want.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests