Correct mutex locking order in runthread. Doesn't seem to fix anything though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8664 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b57dc4cc48
commit
d66c0e5d09
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,7 @@ void sim_sleep(int ticks)
|
|||
|
||||
int runthread(void *data)
|
||||
{
|
||||
SDL_mutexV(m);
|
||||
SDL_mutexP(m);
|
||||
((void(*)())data) ();
|
||||
SDL_mutexV(m);
|
||||
return 0;
|
||||
|
@ -64,6 +64,8 @@ int create_thread(void (*fp)(void), void* sp, int stk_size)
|
|||
|
||||
threads[threadCount++] = SDL_CreateThread(runthread, fp);
|
||||
|
||||
yield();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue