Changeset 5f97ef44 in mainline for uspace/lib/c/include/fibril.h


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/lib/c/include/fibril.h

    r9912f49 r5f97ef44  
    3737
    3838#include <types/common.h>
     39#include <time.h>
    3940
    4041typedef struct fibril fibril_t;
     
    5758extern void fibril_yield(void);
    5859
     60extern void fibril_usleep(suseconds_t);
     61extern void fibril_sleep(unsigned int);
     62
    5963static inline fid_t fibril_create(errno_t (*func)(void *), void *arg)
    6064{
Note: See TracChangeset for help on using the changeset viewer.