Changeset 5f97ef44 in mainline for uspace/app/vuhid


Ignore:
Timestamp:
2018-07-13T14:10:15Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3787a0
Parents:
9912f49
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
Message:

Sleep is more natural as part of the fibril API.
(the implementation will move later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/vuhid/life.c

    r9912f49 r5f97ef44  
    4444        data->data_in_pos = 0;
    4545        data->data_in_last_pos = (size_t) -1;
    46         async_usleep(1000 * 1000 * 5);
     46        fibril_usleep(1000 * 1000 * 5);
    4747        usb_log_debug("%s", data->msg_born);
    4848        while (data->data_in_pos < data->data_in_count) {
    49                 async_usleep(1000 * data->data_in_pos_change_delay);
     49                fibril_usleep(1000 * data->data_in_pos_change_delay);
    5050                // FIXME: proper locking
    5151                data->data_in_pos++;
Note: See TracChangeset for help on using the changeset viewer.