Changes in src/libcfa/concurrency/kernel.c [90c4df0:6b0b624]
- File:
-
- 1 edited
-
src/libcfa/concurrency/kernel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel.c
r90c4df0 r6b0b624 366 366 367 367 void BlockInternal( thread_desc * thrd ) { 368 assert(thrd);369 368 disable_interrupts(); 370 369 assert( thrd->cor.state != Halted ); … … 380 379 381 380 void BlockInternal( spinlock * lock, thread_desc * thrd ) { 382 assert(thrd);383 381 disable_interrupts(); 384 382 this_processor->finish.action_code = Release_Schedule; … … 668 666 } 669 667 670 thread_desc * remove( __thread_queue_t * this, thread_desc ** it ) {671 thread_desc * thrd = *it;672 verify( thrd );673 674 (*it) = thrd->next;675 676 if( this->tail == &thrd->next ) {677 this->tail = it;678 }679 680 thrd->next = NULL;681 682 verify( (this->head == NULL) == (&this->head == this->tail) );683 verify( *this->tail == NULL );684 return thrd;685 }686 687 688 689 668 void ?{}( __condition_stack_t * this ) { 690 669 this->top = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.