Changeset 5f97ef44 in mainline for uspace/srv/net/tcp/test.c


Ignore:
Timestamp:
2018-07-13T14:10:15Z (6 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/srv/net/tcp/test.c

    r9912f49 r5f97ef44  
    7979                printf("S: User received %zu bytes '%s'.\n", rcvd, rcv_buf);
    8080
    81                 async_usleep(1000 * 1000 * 2);
     81                fibril_usleep(1000 * 1000 * 2);
    8282        }
    8383
    84         async_usleep(/*10**/1000 * 1000);
     84        fibril_usleep(/*10**/1000 * 1000);
    8585
    8686        printf("S: User close...\n");
     
    107107        epp.remote.port = 80;
    108108
    109         async_usleep(1000 * 1000 * 3);
     109        fibril_usleep(1000 * 1000 * 3);
    110110        printf("C: User open...\n");
    111111        tcp_uc_open(&epp, ap_active, 0, &conn);
    112112        conn->name = (char *) "C";
    113113
    114         async_usleep(1000 * 1000 * 10);
     114        fibril_usleep(1000 * 1000 * 10);
    115115        printf("C: User send...\n");
    116116        tcp_uc_send(conn, (void *)msg, str_size(msg), 0);
    117117
    118         async_usleep(1000 * 1000 * 20/**20*2*/);
     118        fibril_usleep(1000 * 1000 * 20/**20*2*/);
    119119        printf("C: User close...\n");
    120120        tcp_uc_close(conn);
     
    130130        printf("tcp_test()\n");
    131131
    132         async_usleep(1000 * 1000);
     132        fibril_usleep(1000 * 1000);
    133133
    134134        if (0) {
Note: See TracChangeset for help on using the changeset viewer.