ft_scheduler_broadcast,(1)

NAME
ft_scheduler_broadcast, ft_scheduler_broadcast_value - broadcast of events

  SYNOPSIS

#include <fthread.h>
int ft_scheduler_broadcast       (ft_event_t evt);
int ft_scheduler_broadcast_value (ft_event_t evt,void *val);

  DESCRIPTION
ft_scheduler_broadcast asks the scheduler of the event evt to broadcast it. The event will be generated during the next instant of the scheduler. The value val is associated to evt when the function ft_scheduler_broadcast_value is used.

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

  ERRORS

    BADCREATE
        The event evt is not correctly created.

    BADMEM
        Not enough memory (the scheduler cannot store the broadcast order).

  SEE ALSO
ft_event_create (3).

AUTHOR