Changeset 438 for trunk/kernel/syscalls/sys_thread_join.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_join.c
r436 r438 60 60 target_cxy = CXY_FROM_TRDID( trdid ); 61 61 62 #if CONFIG_DEBUG_SYS_THREAD_JOIN62 #if DEBUG_SYS_THREAD_JOIN 63 63 uint64_t tm_start; 64 64 uint64_t tm_end; 65 65 tm_start = hal_get_cycles(); 66 if( CONFIG_DEBUG_SYS_THREAD_JOIN < tm_start )66 if( DEBUG_SYS_THREAD_JOIN < tm_start ) 67 67 printk("\n[DBG] %s : parent thread %x enter / process %x / target trdid %x / cycle %d\n", 68 68 __FUNCTION__ , joining_ptr , process->pid , trdid , (uint32_t)tm_start ); … … 73 73 { 74 74 75 #if CONFIG_DEBUG_SYSCALLS_ERROR75 #if DEBUG_SYSCALLS_ERROR 76 76 printk("\n[ERROR] in %s : illegal trdid argument %x\n", __FUNCTION__, trdid ); 77 77 #endif … … 84 84 { 85 85 86 #if CONFIG_DEBUG_SYSCALLS_ERROR86 #if DEBUG_SYSCALLS_ERROR 87 87 printk("\n[ERROR] in %s : exit_value argument must be NULL\n", __FUNCTION__ ); 88 88 #endif … … 95 95 { 96 96 97 #if CONFIG_DEBUG_SYSCALLS_ERROR97 #if DEBUG_SYSCALLS_ERROR 98 98 printk("\n[ERROR] in %s : this thread == target thread\n", __FUNCTION__ ); 99 99 #endif … … 109 109 { 110 110 111 #if CONFIG_DEBUG_SYSCALLS_ERROR111 #if DEBUG_SYSCALLS_ERROR 112 112 printk("\n[ERROR] in %s : target thread %x not found\n", __FUNCTION__, trdid ); 113 113 #endif … … 126 126 { 127 127 128 #if CONFIG_DEBUG_SYSCALLS_ERROR128 #if DEBUG_SYSCALLS_ERROR 129 129 printk("\n[ERROR] in %s : target thread %x not joinable\n", __FUNCTION__, trdid ); 130 130 #endif … … 178 178 } 179 179 180 #if CONFIG_DEBUG_SYS_THREAD_JOIN180 #if DEBUG_SYS_THREAD_JOIN 181 181 tm_end = hal_get_cycles(); 182 if( CONFIG_DEBUG_SYS_THREAD_JOIN < tm_end )182 if( DEBUG_SYS_THREAD_JOIN < tm_end ) 183 183 printk("\n[DBG] %s : parent thread %x exit / process %x / target trdid %x / cycle %d\n", 184 184 __FUNCTION__, joining_ptr, process->pid, trdid, (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.