Changeset f07e037 for src/libcfa/concurrency/kernel.c
- Timestamp:
- Feb 23, 2017, 4:24:35 PM (6 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3bb51e1
- Parents:
- 485fdcf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel.c
r485fdcf rf07e037 457 457 void append( simple_thread_list * this, thread * t ) { 458 458 assert( t->next == NULL ); 459 assert(this->tail != NULL); 459 460 *this->tail = t; 460 461 this->tail = &t->next; 462 assert(this->tail != NULL); 461 463 } 462 464 463 465 thread * pop_head( simple_thread_list * this ) { 466 assert(this->tail != NULL); 464 467 thread * head = this->head; 465 468 if( head ) { … … 470 473 head->next = NULL; 471 474 } 472 475 assert(this->tail != NULL); 473 476 return head; 474 477 }
Note: See TracChangeset
for help on using the changeset viewer.