update vendor
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
19a32db84d
commit
94d1cfbfbf
10501 changed files with 2307943 additions and 29279 deletions
17
vendor/github.com/Microsoft/hcsshim/internal/uvm/counter.go
generated
vendored
Normal file
17
vendor/github.com/Microsoft/hcsshim/internal/uvm/counter.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
package uvm
|
||||
|
||||
import "sync"
|
||||
|
||||
var (
|
||||
m sync.Mutex
|
||||
counter uint64
|
||||
)
|
||||
|
||||
// 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 {
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
counter++
|
||||
return counter
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue