diff options
Diffstat (limited to 'uisimulator/sdl/thread-sdl.c')
-rw-r--r-- | uisimulator/sdl/thread-sdl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c index 0090c76ab2..0ddf37a5a0 100644 --- a/uisimulator/sdl/thread-sdl.c +++ b/uisimulator/sdl/thread-sdl.c | |||
@@ -33,7 +33,7 @@ SDL_mutex *m; | |||
33 | void yield(void) | 33 | void yield(void) |
34 | { | 34 | { |
35 | static int counter = 0; | 35 | static int counter = 0; |
36 | 36 | ||
37 | SDL_mutexV(m); | 37 | SDL_mutexV(m); |
38 | if (counter++ >= 50) | 38 | if (counter++ >= 50) |
39 | { | 39 | { |
@@ -58,6 +58,12 @@ int runthread(void *data) | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | int create_thread_on_core(void (*core)(void), void (*fp)(void), void* sp, int stk_size) | ||
62 | { | ||
63 | (void)core; | ||
64 | return create_thread(fp, sp, stk_size); | ||
65 | } | ||
66 | |||
61 | int create_thread(void (*fp)(void), void* sp, int stk_size) | 67 | int create_thread(void (*fp)(void), void* sp, int stk_size) |
62 | { | 68 | { |
63 | /** Avoid compiler warnings */ | 69 | /** Avoid compiler warnings */ |