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 3535 * [Leaking](leaking.md)
3636* [ Unwinding] ( unwinding.md )
3737 * [例外安全性](exception-safety.md)
38- * [ポイズニング ](poisoning.md)
38+ * [Poisoning ](poisoning.md)
3939* [ Concurrency] ( concurrency.md )
4040 * [Races](races.md)
4141 * [Send and Sync](send-and-sync.md)
Original file line number Diff line number Diff line change 1- <!-- # Poisoning-->
2- #ポイズニング
1+ # Poisoning
32
43<!--
54Although 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.
3938こういった型は、panicに直面した際に、意図的に自分自身を** poison** する可能性があり
4039ます。poisoningは自体は特に何か別の事態を引き起こすわけではありません。一般的に
4140通常の手続きの継続を止めるべきであることを表しています。よく知られた例として
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します。
4544
4645<!--
4746Mutex 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