Documentation
¶
Overview ¶
Package control provides abstractions for managing job states and security flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestFlagReg32Concurrent ¶
func TestJobStateTransitions ¶
Types ¶
type FlagReg32 ¶
type FlagReg32[T ~uint32] struct { // contains filtered or unexported fields }
func NewFlagReg32 ¶
type FlagReg32A ¶
type FlagReg32A[T ~uint32] struct { // contains filtered or unexported fields }
func NewFlagReg32A ¶
func NewFlagReg32A[T ~uint32]() *FlagReg32A[T]
NewFlagReg32A creates a new instance of FlagReg32A.
func (*FlagReg32A[T]) Set ¶
func (r *FlagReg32A[T]) Set(mask T)
Set CAS OR (não usa Add; evita somas indevidas quando máscara tem múltiplos bits)
func (*FlagReg32A[T]) SetIf ¶
func (r *FlagReg32A[T]) SetIf(mask, mustHave T) bool
SetIf CAS OR se todos os bits de mustHave estiverem setados
type JobState ¶
type JobState struct {
// contains filtered or unexported fields
}
func NewJobState ¶
func NewJobState() *JobState
func (*JobState) IsTerminal ¶
IsTerminal returns true if the job is in a terminal state.
func (*JobState) RequestCancel ¶
func (s *JobState) RequestCancel()
RequestCancel sets the CancelRequested flag.
type SecFlag ¶
type SecFlag uint32
func FromLegacyMap ¶
FromLegacyMap converte mapa legado (ex: de config JSON) para flags
Click to show internal directories.
Click to hide internal directories.