aboutsummaryrefslogtreecommitdiff
path: root/core/thread
diff options
context:
space:
mode:
authorDragos Popescu <dragos.andreip@yahoo.com>2023-03-22 12:10:27 +0100
committerDragos Popescu <dragos.andreip@yahoo.com>2023-03-22 12:10:27 +0100
commitb2ecb37b358446a2be5e644961e9e7f8552f88d5 (patch)
treed8f806db5e61e456046731790b8a9355895b5b42 /core/thread
parent144d034475cd52e969f030d5b4b0864234445e6f (diff)
Changed js panics to unimplemented where sensible
Diffstat (limited to 'core/thread')
-rw-r--r--core/thread/thread_js.odin16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/thread/thread_js.odin b/core/thread/thread_js.odin
index 10da79848..5821ab238 100644
--- a/core/thread/thread_js.odin
+++ b/core/thread/thread_js.odin
@@ -22,34 +22,34 @@ _thread_priority_map := [Thread_Priority]i32{
}
_create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^Thread {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_start :: proc(t: ^Thread) {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_is_done :: proc(t: ^Thread) -> bool {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_join :: proc(t: ^Thread) {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_join_multiple :: proc(threads: ..^Thread) {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_destroy :: proc(thread: ^Thread) {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_terminate :: proc(using thread : ^Thread, exit_code: int) {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}
_yield :: proc() {
- panic("core:thread procedure not supported on js target")
+ unimplemented("core:thread procedure not supported on js target")
}