Posts Tagged ‘thread manager’

Valueable myPS2 sources! – Part 2

September 19, 2010

The thread scheduler seems to work nicely. I’ve done a simple test project using it and uploaded here:

http://svn2.assembla.com/svn/pedroduarteps2dev_public/wip/testTaskSchedMyPS2

It uses the scheduler.c and scheduler.h files taken from the myPS2 sources and starts two threads. Some delay loops are done inside each thread to slow down processing for us to see what’s going on. The call to ‘Scheduler_YieldThread()’ is important so the thread can cooperate with the other threads.

Could be an alternative to the thread switching method I’m using at cosMix (actually, it’s quite similar).

Advertisements

Valueable myPS2 sources!

August 27, 2010

Although ps2client is mute it is still able to send code to ps2link, so I was able to try myPS2 I’ve found at this site :

http://devfull.de/?page_id=6

It seems to only work at a fat PS2 probabily due to incompatible code when using the network adapter and even at the fat, it stopped at init with the error “Loading GUI String Table…”.

From the same site, I’ve got the sources and I was looking for what file or resource it failed to load, since I get no printf output from the PS2 at this moment.  The contains a lot of interesting stuff.

First, it has code for MP3 decoding (well, it uses MAD library calls), net MP3 streaming (it supports shoutcast radios) and best of all, a thread scheduler!

Looks very good stuff indeed and it will be handy for sure. I’m still digesting its details, still…