summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 53c058a..8e3bc19 100644
--- a/structs.go
+++ b/structs.go
@@ -7,6 +7,8 @@ package tree
*/
import (
+ "sync"
+
"go.wit.com/lib/protobuf/guipb"
"go.wit.com/widget"
)
@@ -18,6 +20,7 @@ import (
var treeRoot *Node
type TreeInfo struct {
+ sync.Mutex // a lock around the tree to serialize access
ok bool // indicates the plugin actually initialized
PluginName string // used to identify the plugin
config *ToolkitConfigs // protobuf of plugin settings