thread_other.odin 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #+build js, wasi, orca
  2. package thread
  3. import "base:intrinsics"
  4. _IS_SUPPORTED :: false
  5. Thread_Os_Specific :: struct {}
  6. _thread_priority_map := [Thread_Priority]i32{
  7. .Normal = 0,
  8. .Low = -2,
  9. .High = +2,
  10. }
  11. _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^Thread {
  12. unimplemented("core:thread procedure not supported on target")
  13. }
  14. _start :: proc(t: ^Thread) {
  15. unimplemented("core:thread procedure not supported on target")
  16. }
  17. _is_done :: proc(t: ^Thread) -> bool {
  18. unimplemented("core:thread procedure not supported on target")
  19. }
  20. _join :: proc(t: ^Thread) {
  21. unimplemented("core:thread procedure not supported on target")
  22. }
  23. _join_multiple :: proc(threads: ..^Thread) {
  24. unimplemented("core:thread procedure not supported on target")
  25. }
  26. _destroy :: proc(thread: ^Thread) {
  27. unimplemented("core:thread procedure not supported on target")
  28. }
  29. _terminate :: proc(using thread : ^Thread, exit_code: int) {
  30. unimplemented("core:thread procedure not supported on target")
  31. }
  32. _yield :: proc() {
  33. unimplemented("core:thread procedure not supported on target")
  34. }