summaryrefslogtreecommitdiff
path: root/protoParse.go
diff options
context:
space:
mode:
Diffstat (limited to 'protoParse.go')
-rw-r--r--protoParse.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/protoParse.go b/protoParse.go
index 1e4cf79..8b6a313 100644
--- a/protoParse.go
+++ b/protoParse.go
@@ -265,6 +265,10 @@ func (pf *File) parseForMessage(line string) *MsgName {
msg.DoMutex = true
log.Info("Added Mutex=true:", msg.Name)
}
+ if strings.Contains(line, "`autogenpb:nomutex`") {
+ msg.NoMutex = true
+ log.Info("Added Mutex=true:", msg.Name)
+ }
if strings.Contains(line, "`autogenpb:marshal`") {
msg.DoMarshal = true
log.Info("Added Marshal=true:", msg.Name)