View Single Post
Old 12-01-2018, 03:31 AM   #28
rooey
Senior Member
 
Join Date: Jul 2014
Posts: 3,862
Likes: 668 (478 Posts)
Default

Quote:
Originally Posted by edit View Post
Event loop

Due to the predominance of graphical user interfaces, most modern applications feature a main loop. The get_next_message() routine is typically provided by the operating system, and blocks until a message is available. Thus, the loop is only entered when there is something to process.

function main
initialize()
while message != quit
message := get_next_message()
process_message(message)
end while
end function

https://en.wikipedia.org/wiki/Event_loop#File_interface

holy shit, i'd suspected something like that.. I know what you mean. can't quite explain prop yet
__________________
rooey is offline   Reply With Quote