pointersync

package
v0.160.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key[T any](ptr *T) uintptr

Types

type Locks

type Locks struct {
	Mutex sync.RWMutex
	Locks map[uintptr]*_Lock
}

func NewLocks

func NewLocks() *Locks

func (*Locks) ReadSync

func (l *Locks) ReadSync(key uintptr) func()

func (*Locks) Sync

func (l *Locks) Sync(key uintptr) func()

type Syncer

type Syncer func() func()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL