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

Changeset edc51615 in mainline


Ignore:
Timestamp:
2018-01-13T22:04:45Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
8b71f3e
Parents:
91173333
Message:

usbdev: small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devpoll.c

    r91173333 redc51615  
    206206        data->running = false;
    207207
    208         if (data->joining) {
    209                 /* Notify joiners, if any. */
    210                 fibril_mutex_lock(&data->guard);
    211                 fibril_condvar_signal(&data->cv);
    212                 fibril_mutex_unlock(&data->guard);
    213         } else {
     208        /* Notify joiners, if any. */
     209        fibril_condvar_broadcast(&data->cv);
     210
     211        /* Free allocated memory. */
     212        if (!data->joining) {
    214213                polling_fini(data);
    215214        }
Note: See TracChangeset for help on using the changeset viewer.