| 60 | } |
| 61 | |
| 62 | s32 CreateThread( const char * name, DaedThread function, void * argument ) |
| 63 | { |
| 64 | s32 thid( ::sceKernelCreateThread( name, StartThreadFunc, gThreadPriorities[TP_NORMAL], 0x10000, 0, nullptr ) ); |
| 65 | |
| 66 | if(thid >= 0) |
| 67 | { |
| 68 | SDaedThreadDetails thread_details( function, argument ); |
| 69 | |
| 70 | ::sceKernelStartThread( thid, sizeof(thread_details), &thread_details ); |
| 71 | |
| 72 | return thid; |
| 73 | } |
| 74 | |
| 75 | return kInvalidThreadHandle; |
| 76 | } |
| 77 | |
| 78 | void SetThreadPriority( s32 handle, EThreadPriority pri ) |
| 79 | { |
no outgoing calls
no test coverage detected