stack switching

Put problems with the Android NDK in this forum.

stack switching

Postby gerbens » Mon Jun 20, 2011 3:41 am

Hey, I'm porting/developing an linux game of mine to android. In this game I used coroutines to easily code the monsters. I've implemented the coroutine structure by stack switching, using ucontext.h. I thought that this would easily port to android (android being linux at the core). However ucontext.h is missing in the ndk, but also in the android git. At least the arm branch (I found it in the sh branch). Anybody having an idea how to implement stack switching on the arm. Either by ripping the ucontext.h from the linux implementation, or doing it another way. Thanks anyway!
gerbens
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Apr 02, 2011 2:57 pm

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 1 guest