File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 35
35
* [Leaking](leaking.md)
36
36
* [ Unwinding] ( unwinding.md )
37
37
* [例外安全性](exception-safety.md)
38
- * [ポイズニング ](poisoning.md)
38
+ * [Poisoning ](poisoning.md)
39
39
* [ Concurrency] ( concurrency.md )
40
40
* [Races](races.md)
41
41
* [Send and Sync](send-and-sync.md)
Original file line number Diff line number Diff line change 1
- <!-- # Poisoning-->
2
- #ポイズニング
1
+ # Poisoning
3
2
4
3
<!--
5
4
Although all unsafe code *must* ensure it has minimal exception safety, not all
@@ -39,9 +38,9 @@ panic. Any future attempts to lock the Mutex will return an `Err` or panic.
39
38
こういった型は、panicに直面した際に、意図的に自分自身を** poison** する可能性があり
40
39
ます。poisoningは自体は特に何か別の事態を引き起こすわけではありません。一般的に
41
40
通常の手続きの継続を止めるべきであることを表しています。よく知られた例として
42
- 標準ライブラリのMutex型があります。この型は対応するMutexGuards(` lock() ` の返り値
43
- の型 )が、panicによってdropされた際に自分自身をpoisonします。以後Mutexをlockしよう
44
- とすると ` Err ` を返すかpanicします。
41
+ 標準ライブラリのMutex型があります。この型は対応するMutexGuards(lockを取得した際に
42
+ 返るもの )が、panicによってdropされた際に自分自身をpoisonします。以後Mutexをlock
43
+ しようとすると ` Err ` を返すかpanicします。
45
44
46
45
<!--
47
46
Mutex poisons not for true safety in the sense that Rust normally cares about. It
You can’t perform that action at this time.
0 commit comments