Move libPS4
[ps4-sdk.git] / libPS4 / include / pthread.h
blobd6b52111f1cddf62a5b0aa7174794b1576dd9fbd
1 #pragma once
3 typedef void *ScePthread;
4 typedef void *ScePthreadAttr;
6 typedef void *ScePthreadMutex;
7 typedef void *ScePthreadMutexattr;
9 extern int (*scePthreadCreate)(ScePthread *thread, const ScePthreadAttr *attr, void *(*entry)(void *), void *arg, const char *name);
10 extern void (*scePthreadExit)(void *value);
11 extern int (*scePthreadDetach)(ScePthread thread);
12 extern int (*scePthreadJoin)(ScePthread thread, void **value_ptr);
13 extern void (*scePthreadYield)(void);
14 extern ScePthread (*scePthreadSelf)(void);
15 extern int (*scePthreadCancel)(ScePthread thread);
17 extern int (*scePthreadMutexInit)(ScePthreadMutex *mutex, const ScePthreadMutexattr *attr, const char *name);
18 extern int (*scePthreadMutexDestroy)(ScePthreadMutex *mutex);
19 extern int (*scePthreadMutexLock)(ScePthreadMutex *mutex);
20 extern int (*scePthreadMutexTrylock)(ScePthreadMutex *mutex);
21 extern int (*scePthreadMutexTimedlock)(ScePthreadMutex *mutex, SceKernelUseconds usec);
22 extern int (*scePthreadMutexUnlock)(ScePthreadMutex *mutex);
24 void initPthread(void);