@@ -728,11 +728,13 @@ void {snake}_context_set_1(void* value);
728728uint32_t {snake}_thread_yield_cancellable(void);
729729uint32_t {snake}_thread_index(void);
730730uint32_t {snake}_thread_new_indirect(void (*start_function)(void*), void* arg);
731- void {snake}_thread_switch_to(uint32_t thread);
732- uint32_t {snake}_thread_switch_to_cancellable(uint32_t thread);
733- void {snake}_thread_resume_later(uint32_t thread);
734- void {snake}_thread_yield_to(uint32_t thread);
735- uint32_t {snake}_thread_yield_to_cancellable(uint32_t thread);
731+ void {snake}_thread_suspend_to(uint32_t thread);
732+ uint32_t {snake}_thread_suspend_to_cancellable(uint32_t thread);
733+ void {snake}_thread_suspend_to_suspended(uint32_t thread);
734+ uint32_t {snake}_thread_suspend_to_suspended_cancellable(uint32_t thread);
735+ void {snake}_thread_unsuspend(uint32_t thread);
736+ void {snake}_thread_yield_to_suspended(uint32_t thread);
737+ uint32_t {snake}_thread_yield_to_suspended_cancellable(uint32_t thread);
736738void {snake}_thread_suspend(void);
737739uint32_t {snake}_thread_suspend_cancellable(void);
738740 "
@@ -776,39 +778,53 @@ uint32_t {snake}_thread_new_indirect(void (*start_function)(void*), void* arg) {
776778);
777779}}
778780
779- __attribute__((__import_module__("$root"), __import_name__("[thread-switch -to]")))
780- extern uint32_t __thread_switch_to (uint32_t);
781+ __attribute__((__import_module__("$root"), __import_name__("[thread-suspend -to-suspended ]")))
782+ extern uint32_t __thread_suspend_to_suspended (uint32_t);
781783
782- void {snake}_thread_switch_to (uint32_t thread) {{
783- __thread_switch_to (thread);
784+ void {snake}_thread_suspend_to_suspended (uint32_t thread) {{
785+ __thread_suspend_to_suspended (thread);
784786}}
785787
786- __attribute__((__import_module__("$root"), __import_name__("[cancellable][thread-switch -to]")))
787- extern uint32_t __thread_switch_to_cancellable (uint32_t);
788+ __attribute__((__import_module__("$root"), __import_name__("[cancellable][thread-suspend -to-suspended ]")))
789+ extern uint32_t __thread_suspend_to_suspended_cancellable (uint32_t);
788790
789- uint32_t {snake}_thread_switch_to_cancellable (uint32_t thread) {{
790- return __thread_switch_to_cancellable (thread);
791+ uint32_t {snake}_thread_suspend_to_suspended_cancellable (uint32_t thread) {{
792+ return __thread_suspend_to_suspended_cancellable (thread);
791793}}
792794
793- __attribute__((__import_module__("$root"), __import_name__("[thread-resume-later ]")))
794- extern void __thread_resume_later (uint32_t);
795+ __attribute__((__import_module__("$root"), __import_name__("[thread-suspend-to ]")))
796+ extern uint32_t __thread_suspend_to (uint32_t);
795797
796- void {snake}_thread_resume_later (uint32_t thread) {{
797- __thread_resume_later (thread);
798+ void {snake}_thread_suspend_to (uint32_t thread) {{
799+ __thread_suspend_to (thread);
798800}}
799801
800- __attribute__((__import_module__("$root"), __import_name__("[thread-yield -to]")))
801- extern uint32_t __thread_yield_to (uint32_t);
802+ __attribute__((__import_module__("$root"), __import_name__("[cancellable][ thread-suspend -to]")))
803+ extern uint32_t __thread_suspend_to_cancellable (uint32_t);
802804
803- void {snake}_thread_yield_to (uint32_t thread) {{
804- __thread_yield_to (thread);
805+ uint32_t {snake}_thread_suspend_to_cancellable (uint32_t thread) {{
806+ return __thread_suspend_to_cancellable (thread);
805807}}
806808
807- __attribute__((__import_module__("$root"), __import_name__("[cancellable][ thread-yield-to ]")))
808- extern uint32_t __thread_yield_to_cancellable (uint32_t);
809+ __attribute__((__import_module__("$root"), __import_name__("[thread-unsuspend ]")))
810+ extern void __thread_unsuspend (uint32_t);
809811
810- uint32_t {snake}_thread_yield_to_cancellable(uint32_t thread) {{
811- return __thread_yield_to_cancellable(thread);
812+ void {snake}_thread_unsuspend(uint32_t thread) {{
813+ __thread_unsuspend(thread);
814+ }}
815+
816+ __attribute__((__import_module__("$root"), __import_name__("[thread-yield-to-suspended]")))
817+ extern uint32_t __thread_yield_to_suspended(uint32_t);
818+
819+ void {snake}_thread_yield_to_suspended(uint32_t thread) {{
820+ __thread_yield_to_suspended(thread);
821+ }}
822+
823+ __attribute__((__import_module__("$root"), __import_name__("[cancellable][thread-yield-to-suspended]")))
824+ extern uint32_t __thread_yield_to_suspended_cancellable(uint32_t);
825+
826+ uint32_t {snake}_thread_yield_to_suspended_cancellable(uint32_t thread) {{
827+ return __thread_yield_to_suspended_cancellable(thread);
812828}}
813829
814830__attribute__((__import_module__("$root"), __import_name__("[thread-suspend]")))
0 commit comments