forked from len0rd/rockbox
Implement remove_thread for SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12971 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a452f73e44
commit
11fa3a871c
2 changed files with 5 additions and 7 deletions
|
@ -251,13 +251,6 @@ const char* const dir_thumbnail_name = "_dirname.talk";
|
||||||
const char* const file_thumbnail_ext = ".talk";
|
const char* const file_thumbnail_ext = ".talk";
|
||||||
#endif
|
#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 */
|
/* assure an unused place to direct virtual pointers to */
|
||||||
#define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */
|
#define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */
|
||||||
unsigned char vp_dummy[VIRT_SIZE];
|
unsigned char vp_dummy[VIRT_SIZE];
|
||||||
|
|
|
@ -93,3 +93,8 @@ void init_threads(void)
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void remove_thread(struct thread_entry *thread)
|
||||||
|
{
|
||||||
|
SDL_KillThread((SDL_Thread*) thread);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue