Add NewEmtpySocketMask() call to TopologyManager socketmask abstraction

This commit is contained in:
Kevin Klues 2019-07-18 09:05:55 -07:00
parent ce80aeaac5
commit 434fd34e0b

View File

@ -39,6 +39,12 @@ type SocketMask interface {
type socketMask uint64
//NewEmptySocketMask creates a new, empty SocketMask
func NewEmptySocketMask() SocketMask {
s := socketMask(0)
return &s
}
//NewSocketMask creates a new SocketMask
func NewSocketMask(sockets ...int) (SocketMask, error) {
s := socketMask(0)