forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pthread library

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
raf



Joined: 13 Oct 2005
Posts: 57

PostPosted: Thu Feb 01, 2007 3:20 am    Post subject: pthread library Reply with quote

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.
Back to top
View user's profile Send private message
monsti



Joined: 04 Mar 2007
Posts: 13
Location: Germany

PostPosted: Sun Mar 04, 2007 5:09 am    Post subject: Re: pthread library Reply with quote

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
Back to top
View user's profile Send private message
raf



Joined: 13 Oct 2005
Posts: 57

PostPosted: Sun Mar 25, 2007 7:53 am    Post subject: Re: pthread library Reply with quote

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.
Back to top
View user's profile Send private message
hectic128



Joined: 17 Nov 2007
Posts: 12

PostPosted: Sat Nov 17, 2007 4:44 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group