]> mj.ucw.cz Git - libucw.git/blob - ucw/doc/mainloop.txt
ucw docs: Mainloop
[libucw.git] / ucw / doc / mainloop.txt
1 Mainloop
2 ========
3
4 Not every program is sequential. You may need an event driven program
5 sometime, lets say a railway server. It has a connection to each
6 station and train to know, where each one is, some things happen at
7 given times, like train is scheduled to leave as station and so on.
8
9 With the mainloop module you can write just the hooks and tell it to
10 watch over a set of file descriptors, timers and running processes.
11
12 // TODO Example?
13
14 - <<conventions,Conventions>>
15 - <<time,Time manipulation>>
16 - <<file,Activity on file descriptors>>
17 - <<hooks,Loop hooks>>
18 - <<process,Child processes>>
19 - <<control,Control of the mainloop>>
20
21 !!ucw/mainloop.h