diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-18 22:46:01 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-18 22:46:01 +0000 |
commit | 6d85de341928aef8178465c60122f3cbe76f5dd6 (patch) | |
tree | ff86c384a574ac20d3418c1b904ed4d0de1f6980 /firmware/export/config.h | |
parent | 3926c30705cc7235122e2f2e35ab506b53238cdf (diff) | |
download | rockbox-6d85de341928aef8178465c60122f3cbe76f5dd6.tar.gz rockbox-6d85de341928aef8178465c60122f3cbe76f5dd6.zip |
Implement cooperative threads on hosted platforms using C code.
This replaces SDL threads with real cooperative threads, which are less cpu intensive and allow priority scheduling.
The backend for context switching is dependant on the host (sigaltstack/longjmp on Unix, Fibers on Windows).
configure has options to force or disallow SDL threads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29327 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 3063e1f06d..a870e5d815 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -717,7 +717,9 @@ Lyre prototype 1 */ | |||
717 | #define HAVE_WAKEUP_EXT_CB | 717 | #define HAVE_WAKEUP_EXT_CB |
718 | 718 | ||
719 | 719 | ||
720 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | 720 | #if defined(ASSEMBLER_THREADS) \ |
721 | || defined(HAVE_WIN32_FIBER_THREADS) \ | ||
722 | || defined(HAVE_SIGALTSTACK_THREADS) | ||
721 | #define HAVE_PRIORITY_SCHEDULING | 723 | #define HAVE_PRIORITY_SCHEDULING |
722 | #endif | 724 | #endif |
723 | 725 | ||