diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-06 02:10:14 -0400 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-06 02:27:49 -0400 |
| commit | 81ffd9bfeee6aca65f507a46c8123b47ca6e2803 (patch) | |
| tree | e9eb535dbc71f35bce7519d7a6a063e4a683ba55 /firmware/target/hosted | |
| parent | e7e302f2559ec2c8878e5b5205755900215196b3 (diff) | |
| download | rockbox-81ffd9bfeee6aca65f507a46c8123b47ca6e2803.zip rockbox-81ffd9bfeee6aca65f507a46c8123b47ca6e2803.tar.gz rockbox-81ffd9bfeee6aca65f507a46c8123b47ca6e2803.tar.bz2 rockbox-81ffd9bfeee6aca65f507a46c8123b47ca6e2803.tar.xz | |
Fix some stuff for no priority and
thread_queue_wake() doesn't need the 2nd parameter. The original purpose
for it never came to be.
Non priority version mrsw_writer_wakeup_readers was left improperly
finished. Get that back into line.
Change-Id: Ic613a2479f3cc14dc7c761517670eb15178da9f5
Diffstat (limited to 'firmware/target/hosted')
| -rw-r--r-- | firmware/target/hosted/sdl/thread-sdl.c | 10 |
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 eaf59e2..e117a4e 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); |