Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/prodcons.c

    ra35b458 r9d58539  
    4747{
    4848        fibril_mutex_lock(&pc->mtx);
    49 
     49       
    5050        list_append(item, &pc->list);
    5151        fibril_condvar_signal(&pc->cv);
    52 
     52       
    5353        fibril_mutex_unlock(&pc->mtx);
    5454}
     
    5757{
    5858        fibril_mutex_lock(&pc->mtx);
    59 
     59       
    6060        while (list_empty(&pc->list))
    6161                fibril_condvar_wait(&pc->cv, &pc->mtx);
    62 
     62       
    6363        link_t *head = list_first(&pc->list);
    6464        list_remove(head);
    65 
     65       
    6666        fibril_mutex_unlock(&pc->mtx);
    67 
     67       
    6868        return head;
    6969}
Note: See TracChangeset for help on using the changeset viewer.