From 6d85de341928aef8178465c60122f3cbe76f5dd6 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 18 Feb 2011 22:46:01 +0000 Subject: 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 --- firmware/export/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/export/config.h') 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 */ #define HAVE_WAKEUP_EXT_CB -#if (CONFIG_PLATFORM & PLATFORM_ANDROID) +#if defined(ASSEMBLER_THREADS) \ + || defined(HAVE_WIN32_FIBER_THREADS) \ + || defined(HAVE_SIGALTSTACK_THREADS) #define HAVE_PRIORITY_SCHEDULING #endif -- cgit v1.2.3