]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #24908: inrustwetrust/once_memory_ordering
authorAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 22:45:45 +0000 (15:45 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 22:45:45 +0000 (15:45 -0700)
`call_once` guarantees that there is a happens-before relationship between its closure and code following it via the sequentially consistent atomic store/loads of `self.cnt`.


Trivial merge