I just committed to subversion a very simple (incomplete also) pthread library. It may prove useful to people working on ports, if nothing else.
I originally wrote it while porting links2, and so I only implemented what I needed.. so there's lots of functionality missing; but it is a start.
Please feel free to comment/make changes/etc.
Thanks,
Raf.
pthread library
Re: pthread library
raf wrote:I just committed to subversion a very simple (incomplete also) pthread library.
Hi Raf,
i am working on a port of mono (http://www.mono-project.org) for PSP. Currently i need a more complete pthread library.
My idea is to port the old libc5 linuxthreads library (http://pauillac.inria.fr/~xleroy/linuxthreads/ ). If you want i can checkin my current work to svn.
What is cool about linuxthreads, it's almost 100% Userspace.
I see some problems:
1) PSP SDK lacks of signals. We might can emulate this, too
2) There is no TLS for PSP threads.
Monsti
Re: pthread library
Monsti,monsti wrote:raf wrote:I just committed to subversion a very simple (incomplete also) pthread library.
Hi Raf,
i am working on a port of mono (http://www.mono-project.org) for PSP. Currently i need a more complete pthread library.
My idea is to port the old libc5 linuxthreads library (http://pauillac.inria.fr/~xleroy/linuxthreads/ ). If you want i can checkin my current work to svn.
What is cool about linuxthreads, it's almost 100% Userspace.
I see some problems:
1) PSP SDK lacks of signals. We might can emulate this, too
2) There is no TLS for PSP threads.
Monsti
Yes, my version is little more than wrappers around the kernel thread functionality; but it's all I've needed so far for my share of porting. I recommend we keep your port of linuxthread as a separate project, though, as they have very different goals. (Remember also that even linuxthreads has been superseded on linux with the kernel nptl implementation; which is orders of magnitude faster and less resource expensive).
Now, if you want to add the missing functionality to my library yourself, then, that would be really appreciated.
Thanks,
Raf.