freelist

package
v0.0.0-...-a9a7f05 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Freelist

type Freelist struct {
	// contains filtered or unexported fields
}

A freelist for arbitrary pointers. Not safe for concurrent access.

func (*Freelist) Get

func (fl *Freelist) Get() (p unsafe.Pointer)

Get an element from the freelist, returning nil if empty.

func (*Freelist) Put

func (fl *Freelist) Put(p unsafe.Pointer)

Contribute an element back to the freelist.

Jump to

Keyboard shortcuts

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