Changeset 0fcccd9 in mainline for uspace/drv/hid/usbhid/main.c


Ignore:
Timestamp:
2018-01-12T11:49:01Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
99a00a6
Parents:
fcdab1e
git-author:
Petr Manek <petr.manek@…> (2018-01-12 11:48:53)
git-committer:
Petr Manek <petr.manek@…> (2018-01-12 11:49:01)
Message:

usbhid: refactoring

Renamed polling synchronization primitives with the same convention as
in usbhub. Added some documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/main.c

    rfcdab1e r0fcccd9  
    144144
    145145        /* Join polling fibril. */
    146         fibril_mutex_lock(&hid_dev->guard);
     146        fibril_mutex_lock(&hid_dev->poll_guard);
    147147        while (hid_dev->running)
    148                 fibril_condvar_wait(&hid_dev->poll_end, &hid_dev->guard);
    149         fibril_mutex_unlock(&hid_dev->guard);
     148                fibril_condvar_wait(&hid_dev->poll_cv, &hid_dev->poll_guard);
     149        fibril_mutex_unlock(&hid_dev->poll_guard);
    150150
    151151        /* Clean up. */
Note: See TracChangeset for help on using the changeset viewer.