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:
parent
9bb3128235
commit
8300d8c194
2 changed files with 21 additions and 15 deletions
|
@ -1,10 +1,10 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2002 by Björn Stenberg <bjorn@haxx.se>
|
||||
|
@ -51,7 +51,7 @@ int ata_write_sectors(IF_MV2(int drive,)
|
|||
const void* buf)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i=0; i<count; i++ ) {
|
||||
FILE* f;
|
||||
char name[32];
|
||||
|
@ -72,7 +72,7 @@ int ata_read_sectors(IF_MV2(int drive,)
|
|||
void* buf)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i=0; i<count; i++ ) {
|
||||
FILE* f;
|
||||
char name[32];
|
||||
|
@ -241,7 +241,7 @@ int talk_number(int n, bool enqueue)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int talk_spell(char* spell, bool enqueue)
|
||||
int talk_spell(char* spell, bool enqueue)
|
||||
{
|
||||
(void)spell;
|
||||
(void)enqueue;
|
||||
|
@ -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];
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue