Thread lock on Update (Android)

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Thread lock on Update (Android)

Postby arkeon » Mon Jun 01, 2015 9:44 am

Hello

On Android my first call to newton update just lock for infinite.
I tried with or without -DDG_THREAD_EMULATION pre processor.
The debugger doesn't help ... (I use Nvidia Nsight for tegra and test on an nvidia Shield tablet)
Any idea ?
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Thread lock on Update (Android)

Postby Julio Jerez » Mon Jun 01, 2015 9:49 am

lock using thread emulation?
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Thread lock on Update (Android)

Postby arkeon » Mon Jun 01, 2015 9:50 am

I'll recheck if I have the DG_THREAD_EMULATION setted every where
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Thread lock on Update (Android)

Postby Julio Jerez » Mon Jun 01, 2015 10:06 am

you do not have to set it every where just on this file: ..\coreLibrary_300\source\core\dgThread.h
like this

Code: Select all
#ifndef __DG_THREAD_API_H__
#define __DG_THREAD_API_H__

// by default newton is run on a separate thread, optionally concurrent with the calling thread, it also uses a thread job pool for multi core systems.
// define DG_USE_THREAD_EMULATION on the command line for platform that do not support hardware multi threading or if multi threading is not stable
#define DG_USE_THREAD_EMULATION


you can also place on the Make file command line. and should work.
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Thread lock on Update (Android)

Postby arkeon » Mon Jun 01, 2015 10:13 am

oups I misspelled the flag ^^ DG_THREAD_EMULATION
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm

Re: Thread lock on Update (Android)

Postby Julio Jerez » Mon Jun 01, 2015 10:23 am

note that the define is DG_USE_THREAD_EMULATION not DG_THREAD_EMULATION
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Thread lock on Update (Android)

Postby arkeon » Mon Jun 01, 2015 11:39 am

Ok this part seems to be ok now. no more lock ^^
the add of the missed POSIX_VER flag must help too.
arkeon
 
Posts: 261
Joined: Sat Sep 13, 2014 5:25 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest