aboutsummaryrefslogtreecommitdiff
path: root/core/thread/thread_js.odin
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-06-29 23:09:49 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-06-29 23:15:31 +0200
commit604551eb2d106d64eb9159bc17aa5c57bbca0ca4 (patch)
tree27ca9e57f7091af156f86f01311928567d01e4a9 /core/thread/thread_js.odin
parent476d0087c8d47102c23cf6de71eb4014b9a7b6b2 (diff)
wasi: make the demo run on wasi and run it in CI
Diffstat (limited to 'core/thread/thread_js.odin')
-rw-r--r--core/thread/thread_js.odin47
1 files changed, 0 insertions, 47 deletions
diff --git a/core/thread/thread_js.odin b/core/thread/thread_js.odin
deleted file mode 100644
index 4f5b5b086..000000000
--- a/core/thread/thread_js.odin
+++ /dev/null
@@ -1,47 +0,0 @@
-//+build js
-package thread
-
-import "base:intrinsics"
-import "core:sync"
-import "core:mem"
-
-Thread_Os_Specific :: struct {}
-
-_thread_priority_map := [Thread_Priority]i32{
- .Normal = 0,
- .Low = -2,
- .High = +2,
-}
-
-_create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^Thread {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_start :: proc(t: ^Thread) {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_is_done :: proc(t: ^Thread) -> bool {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_join :: proc(t: ^Thread) {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_join_multiple :: proc(threads: ..^Thread) {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_destroy :: proc(thread: ^Thread) {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_terminate :: proc(using thread : ^Thread, exit_code: int) {
- unimplemented("core:thread procedure not supported on js target")
-}
-
-_yield :: proc() {
- unimplemented("core:thread procedure not supported on js target")
-}
-