MrabEzreb 0 Posted September 8, 2016 Share Posted September 8, 2016 I am currently working on an operating system (mostly to prove to myself that I can) but have come up against a wall of knowledge. How and where do event handlers registered with event.listen get called? It doesn't seem like it should be the main loop of the OS (or how would you do anything else), but where should it go? EDIT: Asking about how OpenOS does it Quote Link to post Share on other sites
0 dgelessus 26 Posted September 11, 2016 Share Posted September 11, 2016 In event.lua, computer.pullSignal is replaced with a wrapper that calls dispatch before returning the signal that happened. dispatch then goes through the handlers table and calls all listeners for the event that happened. Quote Link to post Share on other sites
I am currently working on an operating system (mostly to prove to myself that I can) but have come up against a wall of knowledge.
How and where do event handlers registered with event.listen get called?
It doesn't seem like it should be the main loop of the OS (or how would you do anything else), but where should it go?
EDIT:
Asking about how OpenOS does it
Link to post
Share on other sites