Changeset 296 for trunk/kernel/syscalls
- Timestamp:
- Jul 31, 2017, 1:59:52 PM (7 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_exit.c
r60 r296 74 74 75 75 // deschedule 76 sched_yield( );76 sched_yield( NULL ); 77 77 } 78 78 } -
trunk/kernel/syscalls/sys_thread_join.c
r23 r296 138 138 139 139 // deschedule 140 sched_yield( );140 sched_yield( NULL ); 141 141 } 142 142 } -
trunk/kernel/syscalls/sys_thread_sleep.c
r101 r296 30 30 int sys_thread_sleep() 31 31 { 32 thread_t * this = CURRENT_THREAD; 33 32 34 thread_dmsg("\n[INFO] %s : thread %x in process %x goes to sleep at cycle %d\n", 33 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_get_cycles() );35 __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() ); 34 36 35 thread_block( CURRENT_THREAD, THREAD_BLOCKED_GLOBAL );36 sched_yield( );37 thread_block( this , THREAD_BLOCKED_GLOBAL ); 38 sched_yield( NULL ); 37 39 38 40 thread_dmsg("\n[INFO] %s : thread %x in process %x resume at cycle\n", 39 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_get_cycles() );41 __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() ); 40 42 41 43 return 0; -
trunk/kernel/syscalls/sys_thread_yield.c
r23 r296 27 27 int sys_thread_yield() 28 28 { 29 sched_yield( );29 sched_yield( NULL ); 30 30 return 0; 31 31 }
Note: See TracChangeset
for help on using the changeset viewer.