mlock

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mlock allows for locking memory, providing implementations for different operating systems.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotSupported is returned when mlock is not available for the platform
	ErrNotSupported = errMlock.Code("not_supported").Error("mlock is not supported")
)

Functions

func LockMemory

func LockMemory() error

LockMemory prevents any memory being written to disk as swap.

func Supported

func Supported() bool

Supported returns true if LockMemory is available on the system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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