CpuMax Struct

Represents the CPU bandwidth limit of a cgroup.

public readonly struct CpuMax : IEquatable<CpuMax>
Implements

Constructors

NameDescription
CpuMax(long?, long)Represents the CPU bandwidth limit of a cgroup.

CpuMax(long?, long)

Represents the CPU bandwidth limit of a cgroup.

public CpuMax(long? MaxMicroseconds, long PeriodMicroseconds)

Parameters

MaxMicroseconds long?
Maximum time in microseconds the cgroup can run during one period, or null when the cgroup is unlimited.
PeriodMicroseconds long
Length of the accounting period in microseconds.

Properties

NameDescription
MaxMicrosecondsMaximum time in microseconds the cgroup can run during one period, or null when the cgroup is unlimited.
PeriodMicrosecondsLength of the accounting period in microseconds.

MaxMicroseconds

CpuMax.cs

Maximum time in microseconds the cgroup can run during one period, or null when the cgroup is unlimited.

public long? MaxMicroseconds { get; init; }

Property value

long?

PeriodMicroseconds

CpuMax.cs

Length of the accounting period in microseconds.

public long PeriodMicroseconds { get; init; }

Property value

long

Methods

NameDescription
Deconstruct(long?, long)
Equals(CpuMax)
Equals(object)
GetHashCode()
ToString()

Deconstruct(long?, long)

public void Deconstruct(out long? MaxMicroseconds, out long PeriodMicroseconds)

Parameters

MaxMicroseconds long?
PeriodMicroseconds long

No documentation is available.

Equals overloads

Equals(CpuMax)

public bool Equals(CpuMax other)
Parameters
other CpuMax
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(CpuMax, CpuMax)
operator !=(CpuMax, CpuMax)

operator ==(CpuMax, CpuMax)

public static bool operator ==(CpuMax left, CpuMax right)

Parameters

left CpuMax
right CpuMax

Returns

bool

No documentation is available.

operator !=(CpuMax, CpuMax)

public static bool operator !=(CpuMax left, CpuMax right)

Parameters

left CpuMax
right CpuMax

Returns

bool

No documentation is available.