Skip to main content

tearing_down_current_thread

Function tearing_down_current_thread 

Source
pub fn tearing_down_current_thread() -> bool
Expand description

今のスレッドが、止めたアプリの片付けの最中か(TODO R5 (c)、2026-11-18)。

片付けは止まるスレッド自身の上で行い、そのスレッドは二度と再開しない。なのでこの間は、スタックの上に残った 借用(RefCell の借用の印・写した Rc)の持ち主はもう動かない。アプリ本体の Drop は、これが真なら 借用中の印が残っていても中身を捨ててよい(JsRuntime の DOM ブリッジ)。負担: アトミックの読み出し 1 回と、プロセス ID の読み出し。