summaryrefslogtreecommitdiff
path: root/generateMutex.go
diff options
context:
space:
mode:
Diffstat (limited to 'generateMutex.go')
-rw-r--r--generateMutex.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/generateMutex.go b/generateMutex.go
index f9e143e..aaa68a5 100644
--- a/generateMutex.go
+++ b/generateMutex.go
@@ -17,16 +17,17 @@ func (pf *File) syncLock(w io.Writer) {
var LOCK string = pf.Base.Lockname // if the Marshall code changes, this will have to change
fmt.Fprintln(w, "// a simple global lock")
- fmt.Fprintln(w, "")
- fmt.Fprintln(w, "// this is needed because it seems Marshal() fails if locks are in the structs (?)")
- fmt.Fprintln(w, "// this might just be a syntactical runtime error. notsure.")
- fmt.Fprintln(w, "// maybe this autogen tool will help someone that actually knows what is going on inside")
- fmt.Fprintln(w, "// go/src/google.golang.org/protobuf/proto/proto_methods.go")
- fmt.Fprintln(w, "// go/src/google.golang.org/protobuf/proto/encode.go")
- fmt.Fprintln(w, "// my guess is that Marshal() needs to be told to ignore sync.RWMutex as it ephemeral and can't be stored")
- fmt.Fprintln(w, "")
fmt.Fprintln(w, "var "+LOCK+" sync.RWMutex")
fmt.Fprintln(w, "")
+ /*
+ fmt.Fprintln(w, "")
+ fmt.Fprintln(w, "// this is needed because it seems Marshal() fails if locks are in the structs (?)")
+ fmt.Fprintln(w, "// this might just be a syntactical runtime error. notsure.")
+ fmt.Fprintln(w, "// maybe this autogen tool will help someone that actually knows what is going on inside")
+ fmt.Fprintln(w, "// go/src/google.golang.org/protobuf/proto/proto_methods.go")
+ fmt.Fprintln(w, "// go/src/google.golang.org/protobuf/proto/encode.go")
+ fmt.Fprintln(w, "// my guess is that Marshal() needs to be told to ignore sync.RWMutex as it ephemeral and can't be stored")
+ */
}
func (pb *Files) addMutex(f *File) error {