Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/kernel.c

    r690f13c r17af7d1  
    294294// Scheduler routines
    295295void ScheduleThread( thread_desc * thrd ) {
    296         if( !thrd ) return;
    297 
    298296        assertf( thrd->next == NULL, "Expected null got %p", thrd->next );
    299297       
     
    470468        return head;
    471469}
    472 
    473 void ?{}( simple_thread_stack * this ) {
    474         this->top = NULL;
    475 }
    476 
    477 void push( simple_thread_stack * this, thread_desc * t ) {
    478         assert(t->next != NULL);
    479         t->next = this->top;
    480         this->top = t;
    481 }
    482 
    483 thread_desc * pop( simple_thread_stack * this ) {
    484         thread_desc * top = this->top;
    485         if( top ) {
    486                 this->top = top->next;
    487                 top->next = NULL;
    488         }       
    489         return top;
    490 }
    491470// Local Variables: //
    492471// mode: c //
Note: See TracChangeset for help on using the changeset viewer.