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 

Mutex's & Thread's

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



Joined: 01 Feb 2006
Posts: 26
Location: Sydney

PostPosted: Wed Feb 01, 2006 9:52 am    Post subject: Mutex's & Thread's Reply with quote

Can anyone tell me if the PSP has direct libraries for mutexs and/or does it support the "thread.h" standard library.

Basically I need to have multiple threads, which will access a common resource, and I only want one thread to access the common code.

I've used mutex_t and thread_t functions with C before but not sure if the PSP supports these libraries, as the PSP seems to implement it's own threading calls.

Any help would be great
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Feb 01, 2006 12:00 pm    Post subject: Re: Mutex's & Thread's Reply with quote

ipsp wrote:
Can anyone tell me if the PSP has direct libraries for mutexs and/or does it support the "thread.h" standard library.

Basically I need to have multiple threads, which will access a common resource, and I only want one thread to access the common code.

I've used mutex_t and thread_t functions with C before but not sure if the PSP supports these libraries, as the PSP seems to implement it's own threading calls.

Any help would be great
Posix threads are not implemented. You can use SDL if you want portable threads and mutexes.
Back to top
View user's profile Send private message
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Wed Feb 01, 2006 7:16 pm    Post subject: Reply with quote

There are also PSP-specific (nonportable) threads and semaphores in "pspthreadman.h".
Back to top
View user's profile Send private message Visit poster's website
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