summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl/thread-sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/sdl/thread-sdl.c')
-rw-r--r--firmware/target/hosted/sdl/thread-sdl.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c
index eaf59e245d..e117a4e3b6 100644
--- a/firmware/target/hosted/sdl/thread-sdl.c
+++ b/firmware/target/hosted/sdl/thread-sdl.c
@@ -439,11 +439,9 @@ unsigned int wakeup_thread_(struct thread_entry **list)
return THREAD_NONE;
}
-unsigned int thread_queue_wake(struct thread_entry **list,
- volatile int *count)
+unsigned int thread_queue_wake(struct thread_entry **list)
{
unsigned int result = THREAD_NONE;
- int num = 0;
for (;;)
{
@@ -453,12 +451,8 @@ unsigned int thread_queue_wake(struct thread_entry **list,
break;
result |= rc;
- num++;
}
- if (count)
- *count = num;
-
return result;
}
@@ -621,7 +615,7 @@ void remove_thread(unsigned int thread_id)
new_thread_id(thread->id, thread);
thread->state = STATE_KILLED;
- thread_queue_wake(&thread->queue, NULL);
+ thread_queue_wake(&thread->queue);
SDL_DestroySemaphore(s);