mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Add NewEmtpySocketMask() call to TopologyManager socketmask abstraction
This commit is contained in:
parent
ce80aeaac5
commit
434fd34e0b
@ -39,6 +39,12 @@ type SocketMask interface {
|
|||||||
|
|
||||||
type socketMask uint64
|
type socketMask uint64
|
||||||
|
|
||||||
|
//NewEmptySocketMask creates a new, empty SocketMask
|
||||||
|
func NewEmptySocketMask() SocketMask {
|
||||||
|
s := socketMask(0)
|
||||||
|
return &s
|
||||||
|
}
|
||||||
|
|
||||||
//NewSocketMask creates a new SocketMask
|
//NewSocketMask creates a new SocketMask
|
||||||
func NewSocketMask(sockets ...int) (SocketMask, error) {
|
func NewSocketMask(sockets ...int) (SocketMask, error) {
|
||||||
s := socketMask(0)
|
s := socketMask(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user