commit | 6d85de341928aef8178465c60122f3cbe76f5dd6 | [log] [tgz] |
---|---|---|
author | Thomas Martitz <kugel@rockbox.org> | Fri Feb 18 22:46:01 2011 +0000 |
committer | Thomas Martitz <kugel@rockbox.org> | Fri Feb 18 22:46:01 2011 +0000 |
tree | ff86c384a574ac20d3418c1b904ed4d0de1f6980 | |
parent | 3926c30705cc7235122e2f2e35ab506b53238cdf [diff] |
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