tls: add gc-aware pthread slots
This commit is contained in:
12
runtime/internal/clite/tls/tls_nogc.go
Normal file
12
runtime/internal/clite/tls/tls_nogc.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build llgo && nogc
|
||||
|
||||
package tls
|
||||
|
||||
type slot[T any] struct {
|
||||
value T
|
||||
destructor func(*T)
|
||||
}
|
||||
|
||||
func registerSlot[T any](s *slot[T]) {}
|
||||
|
||||
func deregisterSlot[T any](s *slot[T]) {}
|
||||
Reference in New Issue
Block a user