Changeset 38d8849 in mainline for uspace/lib/posix/src


Ignore:
Timestamp:
2018-07-16T15:58:51Z (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:
db51219f
Parents:
c124c985
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-14 16:53:46)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-16 15:58:51)
Message:

Privatize <thread.h>.

Location:
uspace/lib/posix/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/pthread/threads.c

    rc124c985 r38d8849  
    3636#include "errno.h"
    3737#include "posix/stdlib.h"
    38 #include "libc/thread.h"
     38#include <fibril.h>
    3939#include "../internal/common.h"
    4040
    4141pthread_t pthread_self(void)
    4242{
    43         return thread_get_id();
     43        return (pthread_t) fibril_get_id();
    4444}
    4545
  • uspace/lib/posix/src/unistd.c

    rc124c985 r38d8849  
    4545
    4646#include "libc/task.h"
    47 #include "libc/thread.h"
    4847#include "libc/stats.h"
    4948#include "libc/malloc.h"
     
    7069unsigned int sleep(unsigned int seconds)
    7170{
    72         return thread_sleep(seconds);
     71        fibril_sleep(seconds);
     72        return 0;
    7373}
    7474
Note: See TracChangeset for help on using the changeset viewer.