12 lines
294 B
Go
12 lines
294 B
Go
package uvm
|
|
|
|
import (
|
|
"sync/atomic"
|
|
)
|
|
|
|
// ContainerCounter is used for where we layout things for a container in
|
|
// a utility VM. For WCOW it'll be C:\c\N\. For LCOW it'll be /run/gcs/c/N/.
|
|
func (uvm *UtilityVM) ContainerCounter() uint64 {
|
|
return atomic.AddUint64(&uvm.containerCounter, 1)
|
|
}
|