diff options
Diffstat (limited to 'global.go')
-rw-r--r-- | global.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/global.go b/global.go new file mode 100644 index 0000000..479864e --- /dev/null +++ b/global.go @@ -0,0 +1,8 @@ +package stm + +import "sync" + +// The globalLock serializes transaction verification/committal. globalCond is +// used to signal that at least one Var has changed. +var globalLock sync.Mutex +var globalCond = sync.NewCond(&globalLock) |