MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / CreateThread

Function CreateThread

Source/SysPSP/Utility/ThreadPSP.cpp:62–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62s32 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
78void SetThreadPriority( s32 handle, EThreadPriority pri )
79{

Callers 2

StartAudioMethod · 0.50
WebDebug_InitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected