gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Timers and Threads

#3931 - DJC6535 - Thu Mar 13, 2003 3:34 am

Hi. I'm relatively new, and am using the GBA lower level applications ( specifically servo moter control ). I would like to run a multithreaded application, but I do not know where to begin. Are there any 'thread' classes I can make use of? I am using XPort which comes with GCC and G++ for ARM7. I'd also appreciate all help I can get on timers. I don't know anything about how to work with them.

I appreciate the fact that these boards aren't the place for such long discussions, so if you could, please email me at djc6535@rit.edu. Thanks!
_________________
Dave

#3932 - DJC6535 - Thu Mar 13, 2003 3:37 am

Any and ALL help ( in the form of example programs, etc ) in using the XPort would be most appreciated. Thanks!
_________________
Dave

#3962 - jenswa - Thu Mar 13, 2003 8:45 pm

Don't post those hopeless help cries in your topic,
somebody will come and help you out.

The reason why it's taking so lang, is probably because
not many people here use the xport but assembly or c/c++ compiler
to create games in bin-form.
But maybe somebody has already emailed you,
isn't there a board on the xport site, which might give better help?

#3967 - DJC6535 - Thu Mar 13, 2003 10:57 pm

I thought my subject was "Timers and Threads" I apologize if that seemed like a hopeless cry for help. No there is no forum on the XPort site. There IS a link to this site though.

Please let me clarify... if the part about email seemed like a "Hopeless cry for help" I just meant that this promises to be a fairly drawn out conversation, which doesn't always work on message boards. However if you do not want to email, feel free to post here.

The question is not strictly about the XPort however. It's more about G++. Specifically, how do I go about making a multithreaded program? Is there a thread library, and if so how do I use it?

Thanks
_________________
Dave

#3970 - tepples - Thu Mar 13, 2003 11:46 pm

The easiest way to do threads on a limited machine such as the GBA is to schedule them cooperatively. See also this thread.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.