Changeset 5f97ef44 in mainline for uspace/drv/test/test2/test2.c


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/drv/test/test2/test2.c

    r9912f49 r5f97ef44  
    125125        errno_t rc;
    126126
    127         async_usleep(1000);
     127        fibril_usleep(1000);
    128128
    129129        (void) register_fun_verbose(test2->dev, "child driven by the same task",
     
    147147        test2->fun_a = fun_a;
    148148
    149         async_usleep(10000000);
     149        fibril_usleep(10000000);
    150150
    151151        ddf_msg(LVL_NOTE, "Unbinding function test1.");
    152152        ddf_fun_unbind(test2->test1);
    153         async_usleep(1000000);
     153        fibril_usleep(1000000);
    154154        ddf_msg(LVL_NOTE, "Unbinding function child.");
    155155        ddf_fun_unbind(test2->child);
Note: See TracChangeset for help on using the changeset viewer.