ft_thread_cooperate,(1)

NAME
ft_thread_cooperate, ft_thread_cooperate_n - cooperate operations

  SYNOPSIS

#include <fthread.h>
int ft_thread_cooperate   (void);
int ft_thread_cooperate_n (int n);

  DESCRIPTION
ft_thread_cooperate makes the calling thread cooperate by returning the control to the scheduler in which it is running. The call ft_thread_cooperate_n (k) is equivalent to for (i=0;i<k;i++) ft_thread_cooperate ().

  RETURN VALUES
On success, the value 0 is returned. On error, a non-zero error code is returned.

  ERRORS

    BADLINK
        The calling thread is unlinked.

AUTHOR