done merging draw thread with update thread

This commit is contained in:
2025-09-10 01:41:59 +01:00
parent dc3009bf54
commit 6961a76471
8 changed files with 68 additions and 78 deletions

View File

@@ -3,13 +3,13 @@ struct
open CML
(* Prerequisite to sending message: move buffer to end. *)
fun loop (searchMailbox, inputMailbox) =
fun loop () =
let
val (buffer, searchString, time) = Mailbox.recv searchMailbox
val (buffer, searchString, time) = Mailbox.recv SearchMailbox.mailbox
val searchList = SearchList.build (buffer, searchString)
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
val () = Mailbox.send (inputMailbox, msg)
val () = InputMailbox.append msg
in
loop (searchMailbox, inputMailbox)
loop ()
end
end