Feature request: Easier main loop hooks
Original Reporter info from Mantis: wimpie
-
Reporter name: Wimpie Nortje
Original Reporter info from Mantis: wimpie
- Reporter name: Wimpie Nortje
Description:
I would like to propose that an easy method of hooking into the application main loop is added. The reasons are:
- The process described in 'Main Loop Hooks' on the wiki is cumbersome and difficult to implement.
- You sometimes want to hook into the main loop for other reasons than watching a socket.
The simplest method would be to have an OnMainLoop callback.
A better method would be to have a list of callbacks that are all called. A user can then register/deregister his callback without disabling other (possibly third party component) callbacks.
Mantis conversion info:
- Mantis ID: 19028
- OS: Linux
- OS Build: Kubuntu 10.10
- Build: 29850
- Platform: i386
- Version: 0.9.31 (SVN)