1 #include <sched.h> 2 #include "syscall.h" 3 sched_yield()4int sched_yield() 5 { 6 #ifdef __LITEOS_A__ 7 return syscall(SYS_sched_yield, 0); 8 #else 9 return syscall(SYS_sched_yield); 10 #endif 11 } 12
1 #include <sched.h> 2 #include "syscall.h" 3 sched_yield()4int sched_yield() 5 { 6 #ifdef __LITEOS_A__ 7 return syscall(SYS_sched_yield, 0); 8 #else 9 return syscall(SYS_sched_yield); 10 #endif 11 } 12