comments and whitespace

This commit is contained in:
Mikayla Fischler 2024-04-09 00:08:47 -04:00
parent 98c37caecd
commit cc3174ee76

View File

@ -142,7 +142,7 @@ function threads.thread__main(smem)
end end
end end
-- iterate sessions and free any closed sessions -- iterate sessions and free any closed ones
apisessions.iterate_all() apisessions.iterate_all()
apisessions.free_all_closed() apisessions.free_all_closed()
@ -183,7 +183,7 @@ function threads.thread__main(smem)
sounder.stop() sounder.stop()
end end
elseif event == "monitor_touch" or event == "mouse_click" or event == "mouse_up" or elseif event == "monitor_touch" or event == "mouse_click" or event == "mouse_up" or
event == "mouse_drag" or event == "mouse_scroll" or event == "double_click" then event == "mouse_drag" or event == "mouse_scroll" or event == "double_click" then
-- handle a mouse event -- handle a mouse event
renderer.handle_mouse(core.events.new_mouse_event(event, param1, param2, param3)) renderer.handle_mouse(core.events.new_mouse_event(event, param1, param2, param3))
elseif event == "speaker_audio_empty" then elseif event == "speaker_audio_empty" then
@ -233,8 +233,7 @@ function threads.thread__main(smem)
iocontrol.fp_rt_status("main", false) iocontrol.fp_rt_status("main", false)
-- if status is true, then we are probably exiting, so this won't matter -- if status is true, then we are probably exiting, so this won't matter
-- if not, we need to restart the clock -- this thread cannot be slept because it will miss events (namely "terminate")
-- this thread cannot be slept because it will miss events (namely "terminate" otherwise)
if not crd_state.shutdown then if not crd_state.shutdown then
log.info("main thread restarting now...") log.info("main thread restarting now...")
end end
@ -244,7 +243,7 @@ function threads.thread__main(smem)
return public return public
end end
-- coordinator renderer thread -- coordinator renderer thread, tasked with long duration re-draws
---@nodiscard ---@nodiscard
---@param smem crd_shared_memory ---@param smem crd_shared_memory
function threads.thread__render(smem) function threads.thread__render(smem)