priority

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 1 Imported by: 1

README

Priority

Package priority implements a priority mutex.

Documentation

Overview

Package priority implements a priority mutex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Priority

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

Priority implement a lock with priorities.

func NewPriority

func NewPriority(n int) *Priority

NewPriority returns a new Priority with n priority levels.

func (*Priority) Pri

func (p *Priority) Pri(n int, f func() error) error

Call the function f with priority.

Directories

Path Synopsis
cmd
race command

Jump to

Keyboard shortcuts

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