Do not call schedule() inside idle loop.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Mar 2010 17:28:54 +0000 (17:28 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Mar 2010 17:28:54 +0000 (17:28 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3259 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/frame.h

index 0809b0eca4d86994baaa48706506f3b8ba4aa0fa..e5c564686c7280895e488b452dd0a16fc28c17f8 100644 (file)
  * in hosted environments such as emulators.
  */
 #ifndef CPU_IDLE
-       #if defined(ARCH_QT) && (ARCH & ARCH_QT)
-               /* This emulator hook should yield the CPU to the host.  */
-               EXTERN_C_BEGIN
-               void schedule(void);
-               EXTERN_C_END
-               #define CPU_IDLE schedule()
-       #else /* !ARCH_EMUL */
-               #define CPU_IDLE do { /* nothing */ } while (0)
-       #endif /* !ARCH_EMUL */
+       #define CPU_IDLE PAUSE
 #endif /* !CPU_IDLE */
 
 /**