Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/internal/task/task_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void* tinygo_task_current(void) {
}

// Exit the current thread.
void tinygo_task_exit(void) {
void tinygo_task_exit_thread(void) {
pthread_exit(NULL);
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/task/task_threads.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func tinygo_task_init(t *Task, thread *threadID, numCPU *int32)
//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

//go:linkname tinygo_task_exit tinygo_task_exit
//go:linkname tinygo_task_exit tinygo_task_exit_thread
func tinygo_task_exit()

// Pause the thread by sending it a signal.
Expand Down
Loading