diff options
author | Felix Arends <edx@rockbox.org> | 2002-06-12 15:39:39 +0000 |
---|---|---|
committer | Felix Arends <edx@rockbox.org> | 2002-06-12 15:39:39 +0000 |
commit | 0053ec0c725206a5fca17bfca8f4ab607b90096a (patch) | |
tree | 046dda9a3da8dfd87f8bc68ce7b5eef3a14de3c5 /uisimulator/win32/kernel.c | |
parent | d0b23126f1da12c03732ade3e6da780c32024349 (diff) |
Threading is working on uisw32 as well now, code is up-to-date, makefile is up-to-date
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@981 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/kernel.c')
-rw-r--r-- | uisimulator/win32/kernel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/uisimulator/win32/kernel.c b/uisimulator/win32/kernel.c index b6d36e3fa8..102bb6c82a 100644 --- a/uisimulator/win32/kernel.c +++ b/uisimulator/win32/kernel.c @@ -18,9 +18,17 @@ ****************************************************************************/ #include <windows.h> +#include "uisw32.h" #include "kernel.h" +#include "thread-win32.h" void sleep(int ticks) { Sleep (1000 / HZ * ticks); +} + + +void yield (void) +{ + PostThreadMessage (GetWindowThreadProcessId (hGUIWnd,NULL), TM_YIELD, 0, 0); }
\ No newline at end of file |