diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 2853c0b121..c778f2c074 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <inttypes.h> | 25 | #include <inttypes.h> |
26 | #include <stddef.h> | 26 | #include <stddef.h> |
27 | #include <stdbool.h> | 27 | #include <stdbool.h> |
28 | #include "gcc_extensions.h" | ||
28 | 29 | ||
29 | /* Priority scheduling (when enabled with HAVE_PRIORITY_SCHEDULING) works | 30 | /* Priority scheduling (when enabled with HAVE_PRIORITY_SCHEDULING) works |
30 | * by giving high priority threads more CPU time than lower priority threads | 31 | * by giving high priority threads more CPU time than lower priority threads |
@@ -385,7 +386,7 @@ void thread_thaw(unsigned int thread_id); | |||
385 | /* Wait for a thread to exit */ | 386 | /* Wait for a thread to exit */ |
386 | void thread_wait(unsigned int thread_id); | 387 | void thread_wait(unsigned int thread_id); |
387 | /* Exit the current thread */ | 388 | /* Exit the current thread */ |
388 | void thread_exit(void) __attribute__((noreturn)); | 389 | void thread_exit(void) NORETURN_ATTR; |
389 | #if defined(DEBUG) || defined(ROCKBOX_HAS_LOGF) | 390 | #if defined(DEBUG) || defined(ROCKBOX_HAS_LOGF) |
390 | #define ALLOW_REMOVE_THREAD | 391 | #define ALLOW_REMOVE_THREAD |
391 | /* Remove a thread from the scheduler */ | 392 | /* Remove a thread from the scheduler */ |