Index of Section 2 Manual Pages

Interix / SUAsched_yield.2Interix / SUA

sched_yield(2)                                           sched_yield(2)

  sched_yield()

  NAME

    sched_yield() - yield to another thread

  SYNOPSIS

    #include 

    int sched_yield(void);

  DESCRIPTION

    The sched_yield(2) causes the calling thread to relinquish control of the
    processor until the thread returns to the head of the thread list.

  RETURN VALUES

    On success, the function returns 0; otherwise, -1 is returned and errno is
    set to an error code to indicate the error.

  ERRORS

    None.

  USAGE NOTES

    The sched_yield function is thread safe.

    The sched_yield function is not async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA