File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,19 @@ safe.
87
87
もう既にアンセーフです。その意味で、これらをスレッドセーフとしてマークしても
88
88
"問題ない" と論じることも可能と言えるでしょう。
89
89
90
+ <!--
90
91
However it's important that they aren't thread safe to prevent types that
91
92
contain them from being automatically marked as thread safe. These types have
92
93
non-trivial untracked ownership, and it's unlikely that their author was
93
94
necessarily thinking hard about thread safety. In the case of Rc, we have a nice
94
95
example of a type that contains a `*mut` that is definitely not thread safe.
96
+ -->
97
+
98
+ しかしながら、これらの型を含んでいる型が、自動的にスレッドセーフとしてマークされないようにするために、
99
+ これらがスレッドセーフではないということは重要です。これらの型は、些細ではない、そして追跡されない
100
+ 所有権を持ち、これらを書いた人が、本当にスレッドセーフについて熟考することは考えにくいです。
101
+ Rc の場合においては、 ` *mut ` を含んでいる型が絶対にスレッドセーフではない、ということに関する
102
+ 素晴らしい例があります。
95
103
96
104
Types that aren't automatically derived can simply implement them if desired:
97
105
You can’t perform that action at this time.
0 commit comments