runtime: support Goexit

This commit is contained in:
visualfc
2025-02-16 08:21:58 +08:00
parent e74d2b45c0
commit 6d7e984238
3 changed files with 31 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ import "C"
import (
"unsafe"
"github.com/goplus/llgo/runtime/internal/clite/pthread"
"github.com/goplus/llgo/runtime/internal/runtime"
)
// llgo:skipall
@@ -52,7 +52,7 @@ func GOMAXPROCS(n int) int {
}
func Goexit() {
pthread.Exit(nil)
runtime.Goexit()
}
func KeepAlive(x any) {