Changeset 39026d7c in mainline for uspace/lib/c/test/fibril/timer.c


Ignore:
Timestamp:
2017-11-29T23:41:05Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
908d634
Parents:
f300523
Message:

Replace fibril_usleep() with async_usleep().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/test/fibril/timer.c

    rf300523 r39026d7c  
    2727 */
    2828
     29#include <async.h>
    2930#include <fibril_synch.h>
    3031#include <pcut/pcut.h>
     
    7778
    7879        fibril_timer_set_locked(t, 100 * 1000 * 1000, test_timeout_fn, &cnt);
    79         fibril_usleep(1000);
     80        async_usleep(1000);
    8081        fts = fibril_timer_clear_locked(t);
    8182        PCUT_ASSERT_INT_EQUALS(fts_active, fts);
     
    100101        cnt = 0;
    101102        fibril_timer_set(t, 100 * 1000 * 1000, test_timeout_fn, &cnt);
    102         fibril_usleep(1000);
     103        async_usleep(1000);
    103104        fts = fibril_timer_clear(t);
    104105        PCUT_ASSERT_INT_EQUALS(fts_active, fts);
     
    126127        fibril_mutex_unlock(&lock);
    127128
    128         fibril_usleep(1000);
     129        async_usleep(1000);
    129130
    130131        fibril_mutex_lock(&lock);
Note: See TracChangeset for help on using the changeset viewer.