Changeset 407 for trunk/kernel/syscalls/sys_thread_sleep.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_sleep.c
r406 r407 32 32 thread_t * this = CURRENT_THREAD; 33 33 34 thread_dmsg("\n[D MSG] %s : thread %x in process %x goes to sleep at cycle %d\n",34 thread_dmsg("\n[DBG] %s : thread %x in process %x goes to sleep at cycle %d\n", 35 35 __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() ); 36 36 37 37 thread_block( this , THREAD_BLOCKED_GLOBAL ); 38 sched_yield( NULL);38 sched_yield(); 39 39 40 thread_dmsg("\n[D MSG] %s : thread %x in process %x resume at cycle\n",40 thread_dmsg("\n[DBG] %s : thread %x in process %x resume at cycle\n", 41 41 __FUNCTION__, this->trdid, this->process->pid, hal_get_cycles() ); 42 42
Note: See TracChangeset
for help on using the changeset viewer.