diff options
author | Simon Van Casteren <simon.van.casteren@gmail.com> | 2019-12-15 10:20:47 +0100 |
---|---|---|
committer | Simon Van Casteren <simon.van.casteren@gmail.com> | 2019-12-15 10:20:47 +0100 |
commit | 586ebe1d29c591aa735e3ed9b7bfc1b1407b3d69 (patch) | |
tree | 81c5af8095c776c084d0688ba9b9623d9cdfc0fc /src/bg_thread.sig | |
parent | 91d154f3fa8634698faea010c9d965009a76fbcb (diff) |
Added background threads
Diffstat (limited to 'src/bg_thread.sig')
-rw-r--r-- | src/bg_thread.sig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bg_thread.sig b/src/bg_thread.sig new file mode 100644 index 00000000..5455bbc8 --- /dev/null +++ b/src/bg_thread.sig @@ -0,0 +1,7 @@ +(* Notice: API is kinda bad. We only allow queuing a single task per file *) +(* This works for us because we only do elaboration in the background, nothing else *) +signature BGTHREAD = sig + val queueBgTask: string (* fileName *) -> (unit -> unit) -> unit + val hasBgTasks: unit -> bool + val runBgTaskForABit: unit -> unit +end |