5 int (*scePthreadCreate
)(ScePthread
*thread
, const ScePthreadAttr
*attr
, void *(*entry
) (void *), void *arg
, const char *name
);
6 void (*scePthreadExit
)(void *value
);
7 int (*scePthreadDetach
)(ScePthread thread
);
8 int (*scePthreadJoin
)(ScePthread thread
, void **value_ptr
);
9 void (*scePthreadYield
)(void);
10 ScePthread (*scePthreadSelf
)(void);
11 int (*scePthreadCancel
)(ScePthread thread
);
13 int (*scePthreadMutexInit
)(ScePthreadMutex
*mutex
, const ScePthreadMutexattr
*attr
, const char *name
);
14 int (*scePthreadMutexDestroy
)(ScePthreadMutex
*mutex
);
15 int (*scePthreadMutexLock
)(ScePthreadMutex
*mutex
);
16 int (*scePthreadMutexTrylock
)(ScePthreadMutex
*mutex
);
17 int (*scePthreadMutexTimedlock
)(ScePthreadMutex
*mutex
, SceKernelUseconds usec
);
18 int (*scePthreadMutexUnlock
)(ScePthreadMutex
*mutex
);
20 void initPthread(void)
23 loadModule("libkernel.sprx", &libkernel
);
25 RESOLVE(libkernel
, scePthreadCreate
);
26 RESOLVE(libkernel
, scePthreadExit
);
27 RESOLVE(libkernel
, scePthreadDetach
);
28 RESOLVE(libkernel
, scePthreadJoin
);
29 RESOLVE(libkernel
, scePthreadYield
);
30 RESOLVE(libkernel
, scePthreadSelf
);
31 RESOLVE(libkernel
, scePthreadCancel
);
33 RESOLVE(libkernel
, scePthreadMutexInit
);
34 RESOLVE(libkernel
, scePthreadMutexDestroy
);
35 RESOLVE(libkernel
, scePthreadMutexLock
);
36 RESOLVE(libkernel
, scePthreadMutexTrylock
);
37 RESOLVE(libkernel
, scePthreadMutexTimedlock
);
38 RESOLVE(libkernel
, scePthreadMutexUnlock
);