| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | reset.retain.cpp | 18 T obj1{1}; in tests() local 23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() 33 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() 64 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() 71 CHECK(ptr.get() == &obj1); in tests() 81 bool ok = (ptr.reset() && ptr2.reset(&obj1, libkern::retain)); in tests()
|
| H A D | assign.copy.cpp | 31 Stored obj1{1}; in tests() local 36 tracked_shared_ptr<From> const from(&obj1, libkern::retain); in tests() 43 CHECK(from.get() == &obj1); in tests() 44 CHECK(to.get() == &obj1); in tests() 49 tracked_shared_ptr<From> const from(&obj1, libkern::retain); in tests() 56 CHECK(from.get() == &obj1); in tests() 57 CHECK(to.get() == &obj1); in tests()
|
| H A D | compare.equal.raw.cpp | 49 T obj1{1}; in tests() local 53 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests() 59 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests() 60 TQual* b = &obj1; in tests() 71 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
|
| H A D | reset.no_retain.cpp | 18 T obj1{1}; in tests() local 23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() 43 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests() 68 bool ok = (ptr.reset() && ptr2.reset(&obj1, libkern::no_retain)); in tests()
|
| H A D | compare.equal.cpp | 43 T obj1{1}; in tests() local 47 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests() 53 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests() 54 test_shared_ptr<TQual> const b(&obj1, libkern::no_retain); in tests()
|
| H A D | swap.cpp | 16 T obj1{1}; in tests() local 21 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests() 37 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests() 81 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests()
|
| H A D | assign.move.cpp | 32 Stored obj1{1}; in tests() local 37 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests() 45 CHECK(to.get() == &obj1); in tests() 50 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests() 58 CHECK(to.get() == &obj1); in tests()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSSet.cpp | 316 const OSMetaClassBase *obj1; in isEqualTo() local 329 obj1 = aSet->members->getObject(i); in isEqualTo() 330 if (containsObject(obj1)) { in isEqualTo() 334 if (!obj1 || !obj2) { in isEqualTo() 338 if (!obj1->isEqualTo(obj2)) { in isEqualTo()
|
| H A D | OSOrderedSet.cpp | 101 OSOrderedSetBlockToFunc(const OSMetaClassBase * obj1, in OSOrderedSetBlockToFunc() argument 107 return ordering(obj1, obj2); in OSOrderedSetBlockToFunc() 264 #define ORDER(obj1, obj2) \ argument 265 (ordering ? ((*ordering)( (const OSObject *) obj1, (const OSObject *) obj2, orderingRef)) : 0)
|
| H A D | OSDictionary.cpp | 594 const OSMetaClassBase * obj1; in setObject() local 615 obj1 = getObject(aKey); in setObject() 617 if (!obj1 || !obj2) { in setObject() 622 if (!obj1->isEqualTo(obj2)) { in setObject()
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSOrderedSet.h | 123 typedef SInt32 (*OSOrderFunction)(const OSMetaClassBase * obj1, 127 typedef int32_t (^OSOrderBlock)(const OSMetaClassBase * obj1,
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_tests.c | 853 vm_object_t obj1, obj2, obj3, obj4; in vm_test_map_copy_adjust_to_target() local 871 obj1 = vm_object_allocate(0x100000); in vm_test_map_copy_adjust_to_target() 877 vm_object_reference(obj1); in vm_test_map_copy_adjust_to_target() 881 VM_MAP_KERNEL_FLAGS_DATA_ANYWHERE(), obj1, 0, in vm_test_map_copy_adjust_to_target() 888 vm_object_reference(obj1); in vm_test_map_copy_adjust_to_target() 892 VM_MAP_KERNEL_FLAGS_DATA_ANYWHERE(), obj1, 0, in vm_test_map_copy_adjust_to_target() 954 assert(os_ref_get_count_raw(&obj1->ref_count) == 1); in vm_test_map_copy_adjust_to_target() 959 vm_object_deallocate(obj1); in vm_test_map_copy_adjust_to_target()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOService.cpp | 3656 const _IOServiceNotifier * obj1 = (const _IOServiceNotifier *) inObj1; in IONotifyOrdering() local 3663 if (obj1) { in IONotifyOrdering() 3664 val1 = obj1->priority; in IONotifyOrdering() 3715 const OSObject * obj1 = (const OSObject *) inObj1; in IOServiceOrdering() local 3723 if (obj1) { in IOServiceOrdering() 3724 val1 = IOServiceObjectOrder( obj1, ref ); in IOServiceOrdering()
|