make future IO working both on go and llgo
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
//go:build llgo
|
||||
// +build llgo
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
|
||||
*
|
||||
@@ -19,14 +22,10 @@ package async
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/goplus/llgo/c"
|
||||
"github.com/goplus/llgo/c/libuv"
|
||||
"github.com/goplus/llgo/c/pthread"
|
||||
)
|
||||
|
||||
//go:linkname Gettid C.pthread_self
|
||||
func Gettid() c.Pointer
|
||||
|
||||
var execKey pthread.Key
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user