Changeset 338
- Timestamp:
- Aug 7, 2017, 1:33:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r337 r338 644 644 bool_t thread_check_sched() 645 645 { 646 646 thread_t * this = CURRENT_THREAD; 647 647 648 648 // check locks count 649 if( (this->local_locks != 0) || (this->remote_locks != 0) ) return false; 650 649 if( (this->local_locks != 0) || (this->remote_locks != 0) ) 650 return false; 651 652 if( this->flags & THREAD_FLAG_SCHED ) 653 sched_yield( NULL ); 654 655 return true; 656 657 #if 0 651 658 // compute elapsed time, taking into account 32 bits register wrap 652 659 uint32_t elapsed; … … 662 669 if( elapsed < CONFIG_CORE_CHECK_EVERY ) return false; 663 670 else return true; 671 #endif 664 672 } 665 673
Note: See TracChangeset
for help on using the changeset viewer.