runtime: avoid duplicate task exit symbol

This commit is contained in:
Jake Bailey
2026-09-06 20:02:31 -07:00
committed by Ron Evans
parent 21718dc59b
commit 3725265fb0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ void* tinygo_task_current(void) {
} }
// Exit the current thread. // Exit the current thread.
void tinygo_task_exit(void) { void tinygo_task_exit_thread(void) {
pthread_exit(NULL); pthread_exit(NULL);
} }
+1 -1
View File
@@ -336,7 +336,7 @@ func tinygo_task_init(t *Task, thread *threadID, numCPU *int32)
//go:linkname tinygo_task_start tinygo_task_start //go:linkname tinygo_task_start tinygo_task_start
func tinygo_task_start(fn uintptr, args unsafe.Pointer, t *Task, thread *threadID, stackTop *uintptr, stackSize uintptr) int32 func tinygo_task_start(fn uintptr, args unsafe.Pointer, t *Task, thread *threadID, stackTop *uintptr, stackSize uintptr) int32
//go:linkname tinygo_task_exit tinygo_task_exit //go:linkname tinygo_task_exit tinygo_task_exit_thread
func tinygo_task_exit() func tinygo_task_exit()
// Pause the thread by sending it a signal. // Pause the thread by sending it a signal.