Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/time.c

    r582a0b8 r78188e5  
    4545#include "posix/assert.h"
    4646
     47#include "libc/fibril_synch.h"
    4748#include "libc/malloc.h"
    4849#include "libc/task.h"
    4950#include "libc/stats.h"
    50 #include "libc/stdbool.h"
    5151#include "libc/stddef.h"
    52 #include "libc/thread.h"
    5352#include "libc/sys/time.h"
    5453
     
    315314                        // TODO: interruptible sleep
    316315                        if (rqtp->tv_sec != 0) {
    317                                 thread_sleep(rqtp->tv_sec);
     316                                fibril_sleep(rqtp->tv_sec);
    318317                        }
    319318                        if (rqtp->tv_nsec != 0) {
    320                                 thread_usleep(rqtp->tv_nsec / 1000);
     319                                fibril_usleep(rqtp->tv_nsec / 1000);
    321320                        }
    322321                        return 0;
Note: See TracChangeset for help on using the changeset viewer.