1
0
Fork 0
forked from len0rd/rockbox

Oops - fix warnings and add a simulator version of remove_thread_on_core()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10876 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Ankers 2006-09-03 21:00:19 +00:00
parent 9bb3128235
commit 8300d8c194
2 changed files with 21 additions and 15 deletions

View file

@ -259,6 +259,12 @@ void remove_thread(int threadnum)
(void)threadnum;
}
void remove_thread_on_core(unsigned int core, int threadnum)
{
(void)core;
(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];

View file

@ -58,12 +58,6 @@ int runthread(void *data)
return 0;
}
int create_thread_on_core(void (*core)(void), void (*fp)(void), void* sp, int stk_size)
{
(void)core;
return create_thread(fp, sp, stk_size);
}
int create_thread(void (*fp)(void), void* sp, int stk_size)
{
/** Avoid compiler warnings */
@ -81,6 +75,12 @@ int create_thread(void (*fp)(void), void* sp, int stk_size)
return 0;
}
int create_thread_on_core(void (*core)(void), void (*fp)(void), void* sp, int stk_size)
{
(void)core;
return create_thread(fp, sp, stk_size);
}
void init_threads(void)
{
m = SDL_CreateMutex();