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 

Creating an user thread from a module

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



Joined: 29 May 2005
Posts: 214

PostPosted: Tue Jan 16, 2007 5:19 am    Post subject: Creating an user thread from a module Reply with quote

Hello,

I have searched a long time this afternoon and test a lot of things to create and start a thread in the user memory, without success.

A code like this one work great but load into kernel memory
Code:

   thid = sceKernelCreateThread("net_thread", net_thread, 0x18, 0x10000, 0 NULL);
   if(thid < 0)
   {
      printf("Error, could not create thread\n");
      sceKernelSleepThread();
   }

   sceKernelStartThread(thid, 0, NULL);


If i try to change the 0 to "PSP_THREAD_ATTR_USER" to load it in user space, the psp just hang.

Is it possible to load a user thread or kernel thread that load in userspace from a prx module ? Thanks in advance for any help !
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