ft_event_create(1)

NAME
ft_event_create - create a new event

  SYNOPSIS

#include <fthread.h>
ft_event_t ft_event_create (ft_scheduler_t sched);

  DESCRIPTION
ft_event_create returns a new event which is created in the scheduler sched. The event can be generated by ft_event_generate or ft_scheduler_broadcast, and it can awaited by ft_event_await.

  RETURN VALUES
On success, the new event is returned and set to absent; NULL is returned otherwise.

  ERRORS

    NULL
        The event cannot be created or the scheduler sched is not correctly created.

  SEE ALSO
ft_event_generate (3), ft_scheduler_broadcast (3), ft_event_await (3).

AUTHOR