Specify reentrancy gurantees of Once::call_once
This commit is contained in:
parent
4dae470513
commit
94de821002
1 changed files with 4 additions and 0 deletions
|
|
@ -178,6 +178,10 @@ impl Once {
|
|||
/// happens-before relation between the closure and code executing after the
|
||||
/// return).
|
||||
///
|
||||
/// If the given closure recusively invokes `call_once` on the same `Once`
|
||||
/// instance the exact behavior is not specified, allowed outcomes are
|
||||
/// a panic or a deadlock.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue