Skip to content

Commit

Permalink
Specify reentrancy gurantees of Once::call_once
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad authored Aug 3, 2018
1 parent 4dae470 commit 94de821
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
/// ```
Expand Down

0 comments on commit 94de821

Please sign in to comment.