Commit Graph

4 Commits

Author SHA1 Message Date
Ashley Mannix
d1017940d7 remove inlined lazy::Waiter in favor of sync::Once 2020-07-17 07:25:32 +10:00
Ashley Mannix
d1263f5e66 use set() in SyncOnceCell::from 2020-07-17 07:25:32 +10:00
Ashley Mannix
237a97760a integrate Lazy into std layout
This commit refactors the initial implementation to fit into std and
makes some other changes:

- use MaybeUninit internally in SyncOnceCell
- correctly impl Drop for lazy::Once
- port Lazy::take from once_cell from: https://github.com/matklad/once_cell/pull/100

Co-Authored-By: Paul Dicker <pitdicker@users.noreply.github.com>
2020-07-17 07:25:32 +10:00
Aleksey Kladov
cac1768b03 First cut of std::lazy module 2020-07-17 07:23:49 +10:00