Closed
Metadata
Metadata
Assignees
Labels
Area: ConcurrencyBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.
Activity
update tracking issue for once_poison
Rollup merge of rust-lang#33578 - durka:patch-21, r=alexcrichton
brson commentedon Dec 29, 2016
This issue is primarily about the
call_once_force
method. Once implements poisoning, and this method is how you get around a poisonedOnce
.frewsxcv commentedon Oct 21, 2017
Anyone have insight whypoisoned
is not just a method onOnce
?EDIT: nevermind
dtolnay commentedon Nov 19, 2017
This naming seems inconsistent:
Mutex::is_poisoned
OnceState::poisoned
Could they both be
is_poisoned
since that one is stable already? Or ispoisoned
better enough that we should deprecate and rename the one on Mutex?joshlf commentedon Nov 19, 2017
Relevant: #43448 contains discussion of whether forking a process should cause poisoning of various synchronization primitives. TLDR: An option is to make it so that if you fork while a
Once
is in use, thus invalidating it, thatOnce
becomes poisoned.steveklabnik commentedon Sep 16, 2019
Triage: no changes here that I'm aware of.
sanmai-NL commentedon Apr 30, 2020
#43448 was closed. @joshlf Can this issue be expedited, without discussing more than one scenario in which the state should be poisoned?
joshlf commentedon Apr 30, 2020
Yes, the "poison on fork" proposal should be considered dead for the time being. The discussion in this issue can safely ignore that proposal.
Amanieu commentedon Apr 30, 2020
I think this API is well designed and worth stabilizing. Note that parking_lot uses a difference
OnceState
, but I think the current one we have in libstd is fine as it is.@rfcbot fcp merge
9 remaining items
Once::try_call_once
#75952Kixunil commentedon Feb 3, 2021
Should this API stabilize after successful FCP or do I misunderstand stabilization process?
Amanieu commentedon Feb 3, 2021
Someone needs to submit a stabilization PR for this feature.
Kixunil commentedon Feb 4, 2021
@Amanieu OK, I decided to become that someone. :) Thanks for clarifying!
Rollup merge of rust-lang#81745 - Kixunil:stabilize_once_poison, r=m-…
Rollup merge of rust-lang#81745 - Kixunil:stabilize_once_poison, r=m-…