pthread library

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
raf
Posts: 57
Joined: Thu Oct 13, 2005 7:38 am

pthread library

Post by raf »

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.
monsti
Posts: 13
Joined: Sun Mar 04, 2007 3:21 am
Location: Germany

Re: pthread library

Post by monsti »

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
raf
Posts: 57
Joined: Thu Oct 13, 2005 7:38 am

Re: pthread library

Post by raf »

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
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.
hectic128
Posts: 12
Joined: Sat Nov 17, 2007 4:41 am

Post by hectic128 »

Did anything ever come of this?

I'm in need of a (relatively complete) pthread implementation for PSP. Just wondered if anyone else is working on this (if not, I'll probably start down the path of implementing my own).

Thanks!
Post Reply