0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 16:48:43 +00:00
bird/sysdep/unix
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
..
io.c Added simple event scheduling system to avoid recursive calling 1999-02-11 21:18:26 +00:00
krt-iface.h Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
krt-iface.Y Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
krt-set.c Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
krt-set.h Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
krt.h Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
krt.Y Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
log.c Finer grained logging levels: 1998-12-20 14:24:35 +00:00
main.c Implemented new configuration/reconfiguration interface and defined protocol 1999-02-05 21:37:34 +00:00
Modules Hopefully finished kernel syncer (krt) rewrite: 1998-12-08 18:37:58 +00:00
sync-if.c Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
sync-rt.c Synced kernel interface to new interface. 1999-02-05 21:38:50 +00:00
timer.h Added comment explaining `now'. 1998-07-15 19:42:23 +00:00
unix.h Exporting fill_in_sockaddr() for use by other unix-dependent code. 1998-10-19 17:47:50 +00:00