Changeset 92caadd in mainline


Ignore:
Timestamp:
2018-01-11T10:26:56Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.