freelist

package
Version: v0.0.0-...-83118d4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, HPND 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.

Source Files

Jump to

Keyboard shortcuts

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