Changeset 582a0b8 in mainline for uspace/lib/c/include/thread.h


Ignore:
Timestamp:
2017-05-08T19:20:39Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/thread.h

    r73db198 r582a0b8  
    3939#include <sys/types.h>
    4040#include <abi/proc/thread.h>
     41#include <time.h>
    4142
    4243extern int thread_create(void (*)(void *), void *, const char *, thread_id_t *);
     
    4546extern int thread_join(thread_id_t);
    4647extern thread_id_t thread_get_id(void);
     48extern int thread_usleep(useconds_t);
     49extern unsigned int thread_sleep(unsigned int);
    4750
    4851#endif
Note: See TracChangeset for help on using the changeset viewer.