diff options
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r-- | firmware/target/hosted/sdl/thread-sdl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c index 5ef9867b23..1a683911d7 100644 --- a/firmware/target/hosted/sdl/thread-sdl.c +++ b/firmware/target/hosted/sdl/thread-sdl.c | |||
@@ -630,6 +630,11 @@ void remove_thread(unsigned int thread_id) | |||
630 | void thread_exit(void) | 630 | void thread_exit(void) |
631 | { | 631 | { |
632 | remove_thread(THREAD_ID_CURRENT); | 632 | remove_thread(THREAD_ID_CURRENT); |
633 | /* This should never and must never be reached - if it is, the | ||
634 | * state is corrupted */ | ||
635 | THREAD_PANICF("thread_exit->K:*R", | ||
636 | thread_id_entry(THREAD_ID_CURRENT)); | ||
637 | while (1); | ||
633 | } | 638 | } |
634 | 639 | ||
635 | void thread_wait(unsigned int thread_id) | 640 | void thread_wait(unsigned int thread_id) |