notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed lag with analog pad device
[pcsx_rearmed.git]
/
frontend
/
3ds
/
pthread.h
diff --git
a/frontend/3ds/pthread.h
b/frontend/3ds/pthread.h
index
56d9085
..
2c2bf6b
100644
(file)
--- a/
frontend/3ds/pthread.h
+++ b/
frontend/3ds/pthread.h
@@
-2,18
+2,18
@@
#ifndef _3DS_PTHREAD_WRAP__
#define _3DS_PTHREAD_WRAP__
#ifndef _3DS_PTHREAD_WRAP__
#define _3DS_PTHREAD_WRAP__
-#include "3ds.h"
-#include "stdlib.h"
-#include "string.h"
-#include "stdio.h"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include "3ds_utils.h"
#define CTR_PTHREAD_STACK_SIZE 0x10000
typedef struct
{
#define CTR_PTHREAD_STACK_SIZE 0x10000
typedef struct
{
-
Handle
handle;
- u
32
* stack;
+
int32_t
handle;
+ u
int32_t
* stack;
}pthread_t;
typedef int pthread_attr_t;
}pthread_t;
typedef int pthread_attr_t;
@@
-23,8
+23,8
@@
static inline int pthread_create(pthread_t *thread,
thread->stack = linearMemAlign(CTR_PTHREAD_STACK_SIZE, 8);
thread->stack = linearMemAlign(CTR_PTHREAD_STACK_SIZE, 8);
- svcCreateThread(&thread->handle,
(ThreadFunc)start_routine,
arg,
- (u
32*)((u32
)thread->stack + CTR_PTHREAD_STACK_SIZE),
+ svcCreateThread(&thread->handle,
start_routine,
arg,
+ (u
int32_t*)((uint32_t
)thread->stack + CTR_PTHREAD_STACK_SIZE),
0x25, 1);
return 1;
0x25, 1);
return 1;