0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
bird/sysdep
Martin Mares e8f73195fa Added simple event scheduling system to avoid recursive calling
of various callbacks.

Events are just another resource type objects (thus automatically freed
and unlinked when the protocol using them shuts down). Each event can
be linked in at most one event list. For most purposes, just use the
global event list handled by the following functions:

	ev_schedule	Schedule event to be called at the next event
			scheduling point. If the event was already
			scheduled, it's just re-linked to the end of the list.
	ev_postpone	Postpone an already scheduled event, so that it
			won't get called. Postponed events can be scheduled
			again by ev_schedule().

You can also create custom event lists to build your own synchronization
primitives. Just use:

	ev_init_list	to initialize an event list
	ev_enqueue	to schedule event on specified event list
	ev_postpone	works as well for custom lists
	ev_run_list	to run all events on your custom list
	ev_run		to run a specific event and dequeue it
1999-02-11 21:18:26 +00:00
..
cf New makefiles. Includes support for out-of-source-tree builds. 1999-01-10 00:18:32 +00:00
linux Synced Linux sysdeps to new interface. 1999-02-05 21:39:21 +00:00
unix Added simple event scheduling system to avoid recursive calling 1999-02-11 21:18:26 +00:00
autoconf.h.in First step of "autoconfization". Created a configure script which 1999-01-09 15:02:11 +00:00
config.h First step of "autoconfization". Created a configure script which 1999-01-09 15:02:11 +00:00