tls: add gc-aware pthread slots

This commit is contained in:
Li Jie
2025-10-15 10:23:09 +08:00
parent dba7bd498f
commit 2110db7263
7 changed files with 501 additions and 0 deletions

View 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]) {}