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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.