Changeset 5f97ef44 in mainline for uspace/lib/c/generic/async/client.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/lib/c/generic/async/client.c

    r9912f49 r5f97ef44  
    515515 *
    516516 */
    517 void async_usleep(suseconds_t timeout)
     517void fibril_usleep(suseconds_t timeout)
    518518{
    519519        awaiter_t awaiter;
     
    538538 * @param sec Number of seconds to sleep
    539539 */
    540 void async_sleep(unsigned int sec)
     540void fibril_sleep(unsigned int sec)
    541541{
    542542        /*
     
    548548                unsigned int period = (sec > 1000) ? 1000 : sec;
    549549
    550                 async_usleep(period * 1000000);
     550                fibril_usleep(period * 1000000);
    551551                sec -= period;
    552552        }
Note: See TracChangeset for help on using the changeset viewer.