sandungas
Developer
Regarding my previous brainstorming message about multithreading...
I was reading a C++ tutorial and found a good example of how to do it https://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm
In the example they uses the "pthread_create" and "pthread_exit" from linux POSIX (and this should work if you run it in PS3 under OtherOS linux, actually there is a small chunk of source code example from glevand on wiki using it)
But under GameOS it seems is done with "sys_ppu_thread_create" and "sys_ppu_thread_exit" and works in the same way, is using library <sys/thread.h> as can be seen in openps3ftp
https://github.com/jjolano/openps3ftp-v1/blob/master/source/main.c
I thought multithreading in homebrew could be a milestone, but i just realized openps3ftp was using it lot of time ago
I was reading a C++ tutorial and found a good example of how to do it https://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm
In the example they uses the "pthread_create" and "pthread_exit" from linux POSIX (and this should work if you run it in PS3 under OtherOS linux, actually there is a small chunk of source code example from glevand on wiki using it)
But under GameOS it seems is done with "sys_ppu_thread_create" and "sys_ppu_thread_exit" and works in the same way, is using library <sys/thread.h> as can be seen in openps3ftp
https://github.com/jjolano/openps3ftp-v1/blob/master/source/main.c
I thought multithreading in homebrew could be a milestone, but i just realized openps3ftp was using it lot of time ago
Last edited: