Changeset 50 for trunk/kernel/syscalls/sys_thread_sleep.c
- Timestamp:
- Jun 26, 2017, 3:15:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_sleep.c
r23 r50 30 30 int sys_thread_sleep() 31 31 { 32 thread_t * this = CURRENT_THREAD;33 34 32 thread_dmsg("\n[INFO] %s : thread %x in process %x goes to sleep at cycle %d\n", 35 __FUNCTION__ , this->trdid , this->process->pid, hal_time_stamp() );33 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_time_stamp() ); 36 34 37 35 thread_block( CURRENT_THREAD , THREAD_BLOCKED_GLOBAL ); … … 39 37 40 38 thread_dmsg("\n[INFO] %s : thread %x in process %x resume at cycle\n", 41 __FUNCTION__ , this->trdid , this->process->pid, hal_time_stamp() );39 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_time_stamp() ); 42 40 43 41 return 0;
Note: See TracChangeset
for help on using the changeset viewer.