Skip to content

Commit c31a318

Browse files
committed
Translate a list
1 parent 346ea1c commit c31a318

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/send-and-sync.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,15 @@ Major exceptions include:
6161

6262
これの主な例外には、このようなものがあります。
6363

64+
<!--
6465
* raw pointers are neither Send nor Sync (because they have no safety guards).
6566
* `UnsafeCell` isn't Sync (and therefore `Cell` and `RefCell` aren't).
6667
* `Rc` isn't Send or Sync (because the refcount is shared and unsynchronized).
68+
-->
69+
70+
* 生ポインタは Send も Sync も実装していません (なぜなら生ポインタには安全性に関するガードが存在しないからです) 。
71+
* `UnsafeCell` は Sync を実装していません (そしてそれ故に `Cell``RefCell` も同様です) 。
72+
* `Rc` は Send も Sync も実装していません (なぜなら参照カウントが共有され、これは同期されないからです) 。
6773

6874
`Rc` and `UnsafeCell` are very fundamentally not thread-safe: they enable
6975
unsynchronized shared mutable state. However raw pointers are, strictly

0 commit comments

Comments
 (0)