[go-nuts] Async process state snapshotting in Golang

2018-01-26 Thread Tamás Gulácsi
Do those *SomeStruct change during map serialization, or only the map (new keys / delete keys)? If they do, you'll have to lock them too, not just the map access! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] Async process state snapshotting in Golang

2018-01-26 Thread jul . semaan
Hi, I'm currently tackling a head scratching problem (at least for me). First, I'll start by explaining my main goal: I have an in memory 'map[string]*SomeStructPointer' that I want to JSON encode and write to a file. Now since I want to prevent concurrent access to the map, I need to lock-down