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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user