We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bd8e4 commit 334653aCopy full SHA for 334653a
examples/singleapp/map_is_not_threadsafe/race/main.go
@@ -1,7 +1,11 @@
1
// マップ操作 はスレッドセーフでは無いというのを示すサンプルです。
2
// 本サンプルはデータ競合が発生しています。
3
//
4
+// Go本家のFAQにもmap操作はatomicでは無いですよと記載がある。
5
+// - https://go.dev/doc/faq#atomic_maps
6
+//
7
// REFERENCES:
8
9
// - https://stackoverflow.com/questions/44152988/append-not-thread-safe
10
// - https://stackoverflow.com/questions/49879322/can-i-concurrently-write-different-slice-elements
11
package main
0 commit comments