]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | # Implementing Arc |
2 | ||
3 | In this section, we'll be implementing a simpler version of `std::sync::Arc`. | |
4 | Similarly to [the implementation of `Vec` we made earlier](vec.md), we won't be | |
5 | taking advantage of as many optimizations, intrinsics, or unstable code as the | |
6 | standard library may. | |
7 | ||
8 | This implementation is loosely based on the standard library's implementation | |
9 | (technically taken from `alloc::sync` in 1.49, as that's where it's actually | |
10 | implemented), but it will not support weak references at the moment as they | |
11 | make the implementation slightly more complex. | |
12 | ||
13 | Please note that this section is very work-in-progress at the moment. |