done with scaffolding for file mailbox; next, send message to file mailbox to export and import, and handle these messages properly from the file mailbox

This commit is contained in:
2024-08-28 20:42:52 +01:00
parent e587c6cf73
commit 48c721e29b
6 changed files with 40 additions and 14 deletions

View File

@@ -28,11 +28,13 @@ struct
val inputMailbox = Mailbox.mailbox ()
val drawMailbox = Mailbox.mailbox ()
val fileMailbox = Mailbox.mailbox ()
val _ = InputCallbacks.registerCallbacks (window, inputMailbox)
val _ = CML.spawn (fn () =>
InputCallbacks.registerCallbacks (window, inputMailbox))
val _ = CML.spawn (fn () =>
UpdateThread.run (inputMailbox, drawMailbox, initialModel))
UpdateThread.run (inputMailbox, drawMailbox, fileMailbox, initialModel))
val _ = CML.spawn (fn () =>
DrawThread.run
( drawMailbox
@@ -44,6 +46,8 @@ struct
, triangleDrawObject
, 0
))
val _ = CML.spawn (fn () => FileThread.run fileMailbox)
in
()
end