Changeset 5f97ef44 in mainline for uspace/lib/c/test


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/lib/c/test/fibril/timer.c

    r9912f49 r5f97ef44  
    7878
    7979        fibril_timer_set_locked(t, 100 * 1000 * 1000, test_timeout_fn, &cnt);
    80         async_usleep(1000);
     80        fibril_usleep(1000);
    8181        fts = fibril_timer_clear_locked(t);
    8282        PCUT_ASSERT_INT_EQUALS(fts_active, fts);
     
    101101        cnt = 0;
    102102        fibril_timer_set(t, 100 * 1000 * 1000, test_timeout_fn, &cnt);
    103         async_usleep(1000);
     103        fibril_usleep(1000);
    104104        fts = fibril_timer_clear(t);
    105105        PCUT_ASSERT_INT_EQUALS(fts_active, fts);
     
    127127        fibril_mutex_unlock(&lock);
    128128
    129         async_usleep(1000);
     129        fibril_usleep(1000);
    130130
    131131        fibril_mutex_lock(&lock);
Note: See TracChangeset for help on using the changeset viewer.