1
Fork 0
Commit graph

8 commits

Author SHA1 Message Date
mark
2c31b45ae8 mv std libs to library/ 2020-07-27 19:51:13 -05:00
Mohsen Zohrevandi
141adeb493 Fix sync_once_cell_does_not_leak_partially_constructed_boxes
Spinning multiple threads in this test causes a deadlock in
SGX where thread scheduling is not preemptive.
2020-07-21 11:08:37 -07:00
Ashley Mannix
fe63905708 link once_cell feature to #74465 2020-07-18 10:12:02 +10:00
Ashley Mannix
1f1cda65d9 appease tidy 2020-07-17 07:25:32 +10:00
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