rtkittest

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rtkittest serves a fake RealtimeKit on a private bus, for tests of code that asks rtkit for a thread's priority.

Index

Constants

View Source
const RTTimeUSecMax = 200000

Variables

This section is empty.

Functions

func Serve

func Serve(t testing.TB, grant Grant) (address string)

Types

type Grant

type Grant func(Request) *dbus.Error

type Method

type Method uint8
const (
	Realtime Method = iota + 1
	HighPriority
)

type Request

type Request struct {
	Method Method
	TID    int
	Value  int64
	RTTime unix.Rlimit
}

Jump to

Keyboard shortcuts

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