summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/stubs.c7
-rw-r--r--uisimulator/sdl/thread-sdl.c5
2 files changed, 5 insertions, 7 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 8ea46824ce..00a0701f80 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -251,13 +251,6 @@ const char* const dir_thumbnail_name = "_dirname.talk";
const char* const file_thumbnail_ext = ".talk";
#endif
-/* FIXME: this shoudn't be a stub, rather the real thing.
- I'm afraid on Win32/X11 it'll be hard to kill a thread from outside. */
-void remove_thread(int threadnum)
-{
- (void)threadnum;
-}
-
/* assure an unused place to direct virtual pointers to */
#define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */
unsigned char vp_dummy[VIRT_SIZE];
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c
index 809897da01..830e89e45a 100644
--- a/uisimulator/sdl/thread-sdl.c
+++ b/uisimulator/sdl/thread-sdl.c
@@ -93,3 +93,8 @@ void init_threads(void)
exit(-1);
}
}
+
+void remove_thread(struct thread_entry *thread)
+{
+ SDL_KillThread((SDL_Thread*) thread);
+}