Home
last modified time | relevance | path

Searched refs:intrusive_shared_ptr (Results 1 – 15 of 15) sorted by relevance

/xnu-11417.121.6/libkern/libkern/c++/
H A Dintrusive_shared_ptr.h124 struct __attribute__((trivial_abi)) intrusive_shared_ptr {
138 constexpr intrusive_shared_ptr() noexcept : ptr_(nullptr) {
140 constexpr intrusive_shared_ptr(isp_detail::nullptr_t) noexcept : ptr_(nullptr) {
155 intrusive_shared_ptr(pointer p, retain_t) noexcept : ptr_(p) {
173 intrusive_shared_ptr(__attribute__((os_consumed)) pointer p, no_retain_t) noexcept : ptr_(p) {
181 intrusive_shared_ptr(intrusive_shared_ptr const & other) : ptr_(other.ptr_) {
198 intrusive_shared_ptr(intrusive_shared_ptr<U, RefcountPolicy> const & other) : ptr_(other.ptr_) {
209 constexpr intrusive_shared_ptr(intrusive_shared_ptr && other) noexcept : ptr_(other.ptr_) {
224 …constexpr intrusive_shared_ptr(intrusive_shared_ptr<U, RefcountPolicy>&& other) noexcept : ptr_(ot…
237 ~intrusive_shared_ptr() {
[all …]
H A DOSSharedPtr.h66 class __attribute__((trivial_abi)) OSSharedPtr: public libkern::intrusive_shared_ptr<T, intrusive_o…
67 using libkern::intrusive_shared_ptr<T, intrusive_osobject_retainer>::intrusive_shared_ptr;
71 class __attribute__((trivial_abi)) OSTaggedSharedPtr: public libkern::intrusive_shared_ptr<T, intru…
72 …using libkern::intrusive_shared_ptr<T, intrusive_tagged_osobject_retainer<Tag> >::intrusive_shared…
H A DMakefile33 intrusive_shared_ptr.h \
/xnu-11417.121.6/tests/intrusive_shared_ptr_src/
H A Dctor.copy.cpp37 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
38 libkern::intrusive_shared_ptr<To, test_policy> to(from); // explicit in tests()
44 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
45 libkern::intrusive_shared_ptr<To, test_policy> to{from}; // explicit in tests()
51 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
52 libkern::intrusive_shared_ptr<To, test_policy> to = from; // implicit in tests()
60 libkern::intrusive_shared_ptr<From, test_policy> const from = nullptr; in tests()
61 libkern::intrusive_shared_ptr<To, test_policy> to = from; in tests()
100 …_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> >, /*from*/ libkern…
H A Dctor.move.cpp38 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
42 libkern::intrusive_shared_ptr<To, test_policy> to(std::move(from)); // explicit in tests()
49 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
53 libkern::intrusive_shared_ptr<To, test_policy> to{std::move(from)}; // explicit in tests()
60 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
64 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); // implicit in tests()
73 libkern::intrusive_shared_ptr<From, test_policy> from = nullptr; in tests()
74 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); in tests()
114 …_constructible_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> >, /*from*/ libkern…
H A Dctor.default.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr; in tests()
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{}; in tests()
26 …libkern::intrusive_shared_ptr<T, test_policy> ptr = libkern::intrusive_shared_ptr<T, test_policy>(… in tests()
30 libkern::intrusive_shared_ptr<T, test_policy> ptr = {}; in tests()
H A Dctor.nullptr.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr; in tests()
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{nullptr}; in tests()
26 libkern::intrusive_shared_ptr<T, test_policy> ptr(nullptr); in tests()
H A Ddtor.cpp19 libkern::intrusive_shared_ptr<T, test_policy> ptr(&obj, libkern::no_retain);
31 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr;
H A Dctor.ptr.no_retain.cpp21 libkern::intrusive_shared_ptr<TQual, test_policy> ptr(&obj, libkern::no_retain); in tests()
27 libkern::intrusive_shared_ptr<TQual, test_policy> ptr{&obj, libkern::no_retain}; in tests()
H A Dctor.ptr.retain.cpp21 libkern::intrusive_shared_ptr<TQual, test_policy> ptr(&obj, libkern::retain); in tests()
27 libkern::intrusive_shared_ptr<TQual, test_policy> ptr{&obj, libkern::retain}; in tests()
H A Dtest_policy.h73 using tracked_shared_ptr = libkern::intrusive_shared_ptr<T, tracking_policy>;
76 using test_shared_ptr = libkern::intrusive_shared_ptr<T, test_policy>;
H A Dassign.copy.cpp120 …:is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> >, /*from*/ libkern…
H A Dabi_helper.h12 using SharedPtr = libkern::intrusive_shared_ptr<T, test_policy>;
H A Dassign.move.cpp121 …:is_assignable_v</*to*/ libkern::intrusive_shared_ptr<Derived, dummy_policy<2> >, /*from*/ libkern…
/xnu-11417.121.6/tests/
H A DMakefile674 intrusive_shared_ptr: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I… target
675 intrusive_shared_ptr: $(wildcard intrusive_shared_ptr_src/*.cpp) intrusive_shared_ptr.cpp target