Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 92caadd in mainline


Ignore:
Timestamp:
2018-01-11T10:26:56Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
351113f
Parents:
30fc56f
Message:

usbhost: fix endpoint_wait_timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/endpoint.c

    r30fc56f r92caadd  
    130130        assert(fibril_mutex_is_locked(&ep->guard));
    131131
    132         while (ep->active_batch != NULL)
     132        if (ep->active_batch != NULL)
     133                fibril_condvar_wait_timeout(&ep->avail, &ep->guard, timeout);
     134
     135        while (timeout == 0 && ep->active_batch != NULL)
    133136                fibril_condvar_wait_timeout(&ep->avail, &ep->guard, timeout);
    134137}
Note: See TracChangeset for help on using the changeset viewer.