Home
last modified time | relevance | path

Searched refs:use_count (Results 1 – 25 of 65) sorted by relevance

123

/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dshared_ptr_rv.pass.cpp38 assert(pA.use_count() == 1); in main()
45 assert(pA.use_count() == 0); in main()
46 assert(pA2.use_count() == 1); in main()
48 assert(pA.use_count() == 2); in main()
49 assert(pA2.use_count() == 2); in main()
54 assert(pA.use_count() == 0); in main()
57 assert(pA.use_count() == 1); in main()
64 assert(pA.use_count() == 0); in main()
69 assert(pA.use_count() == 0); in main()
70 assert(pA2.use_count() == 0); in main()
[all …]
Dshared_ptr_Y_rv.pass.cpp65 assert(pA.use_count() == 1); in main()
74 assert(pB.use_count() == 1); in main()
75 assert(pA.use_count() == 0); in main()
77 assert(pB.use_count() == 2); in main()
78 assert(pA.use_count() == 2); in main()
83 assert(pA.use_count() == 0); in main()
87 assert(pA.use_count() == 1); in main()
96 assert(pA.use_count() == 0); in main()
103 assert(pB.use_count() == 0); in main()
104 assert(pA.use_count() == 0); in main()
[all …]
Dshared_ptr.pass.cpp34 assert(pA.use_count() == 1); in main()
39 assert(pA.use_count() == 2); in main()
40 assert(pA2.use_count() == 2); in main()
43 assert(pA.use_count() == 1); in main()
49 assert(pA.use_count() == 0); in main()
54 assert(pA.use_count() == 0); in main()
55 assert(pA2.use_count() == 0); in main()
58 assert(pA.use_count() == 0); in main()
Dshared_ptr_Y.pass.cpp61 assert(pA.use_count() == 1); in main()
68 assert(pB.use_count() == 2); in main()
69 assert(pA.use_count() == 2); in main()
72 assert(pA.use_count() == 1); in main()
80 assert(pA.use_count() == 0); in main()
87 assert(pB.use_count() == 0); in main()
88 assert(pA.use_count() == 0); in main()
91 assert(pA.use_count() == 0); in main()
Dshared_ptr_pointer.pass.cpp45 assert(pA.use_count() == 1); in main()
51 assert(pA.use_count() == 2); in main()
52 assert(pB.use_count() == 2); in main()
55 assert(pA.use_count() == 1); in main()
/external/libcxx/test/libcxx/utilities/memory/util.smartptr/
Drace_condition.pass.cpp50 assert(p.use_count() == 2); in run_test()
52 assert(p.use_count() == 3); in run_test()
54 assert(p.use_count() == 4); in run_test()
63 int last = p.use_count(); in run_test()
64 int new_val = p.use_count(); in run_test()
69 last = w.use_count(); in run_test()
70 new_val = w.use_count(); in run_test()
78 assert(p.use_count() == 3); in run_test()
86 assert(p.use_count() == 1); in main()
93 assert(p.use_count() == 1); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.spec/
Dswap.pass.cpp39 assert(p1.use_count() == 1); in main()
41 assert(p2.use_count() == 1); in main()
45 assert(p1.use_count() == 1); in main()
57 assert(p1.use_count() == 0); in main()
59 assert(p2.use_count() == 1); in main()
63 assert(p1.use_count() == 0); in main()
75 assert(p1.use_count() == 1); in main()
77 assert(p2.use_count() == 0); in main()
81 assert(p1.use_count() == 1); in main()
93 assert(p1.use_count() == 0); in main()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/
Dswap.pass.cpp39 assert(p1.use_count() == 1); in main()
41 assert(p2.use_count() == 1); in main()
45 assert(p1.use_count() == 1); in main()
57 assert(p1.use_count() == 0); in main()
59 assert(p2.use_count() == 1); in main()
63 assert(p1.use_count() == 0); in main()
75 assert(p1.use_count() == 1); in main()
77 assert(p2.use_count() == 0); in main()
81 assert(p1.use_count() == 1); in main()
93 assert(p1.use_count() == 0); in main()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/
Dshared_ptr_Y_rv.pass.cpp55 assert(pB.use_count() == 1); in main()
56 assert(pA.use_count() == 0); in main()
60 assert(pA.use_count() == 0); in main()
74 assert(pB.use_count() == 0); in main()
75 assert(pA.use_count() == 0); in main()
79 assert(pA.use_count() == 0); in main()
93 assert(pB.use_count() == 1); in main()
94 assert(pA.use_count() == 0); in main()
98 assert(pA.use_count() == 0); in main()
112 assert(pB.use_count() == 0); in main()
[all …]
Dshared_ptr_rv.pass.cpp55 assert(pB.use_count() == 1); in main()
56 assert(pA.use_count() == 0); in main()
60 assert(pA.use_count() == 0); in main()
74 assert(pB.use_count() == 0); in main()
75 assert(pA.use_count() == 0); in main()
79 assert(pA.use_count() == 0); in main()
93 assert(pB.use_count() == 1); in main()
94 assert(pA.use_count() == 0); in main()
98 assert(pA.use_count() == 0); in main()
112 assert(pB.use_count() == 0); in main()
[all …]
Dshared_ptr.pass.cpp53 assert(pB.use_count() == 2); in main()
54 assert(pA.use_count() == 2); in main()
58 assert(pA.use_count() == 1); in main()
72 assert(pB.use_count() == 0); in main()
73 assert(pA.use_count() == 0); in main()
77 assert(pA.use_count() == 0); in main()
91 assert(pB.use_count() == 2); in main()
92 assert(pA.use_count() == 2); in main()
96 assert(pA.use_count() == 1); in main()
110 assert(pB.use_count() == 0); in main()
[all …]
Dshared_ptr_Y.pass.cpp53 assert(pB.use_count() == 2); in main()
54 assert(pA.use_count() == 2); in main()
58 assert(pA.use_count() == 1); in main()
72 assert(pB.use_count() == 0); in main()
73 assert(pA.use_count() == 0); in main()
77 assert(pA.use_count() == 0); in main()
91 assert(pB.use_count() == 2); in main()
92 assert(pA.use_count() == 2); in main()
96 assert(pA.use_count() == 1); in main()
110 assert(pB.use_count() == 0); in main()
[all …]
Dauto_ptr_Y.pass.cpp54 assert(pB.use_count() == 1); in main()
71 assert(pB.use_count() == 1); in main()
88 assert(pB.use_count() == 1); in main()
105 assert(pB.use_count() == 1); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
Dweak_ptr.pass.cpp70 assert(pA.use_count() == 1); in main()
77 assert(pB.use_count() == 1); in main()
78 assert(pA.use_count() == 1); in main()
80 assert(pA.use_count() == 1); in main()
88 assert(pA.use_count() == 0); in main()
95 assert(pB.use_count() == 0); in main()
96 assert(pA.use_count() == 0); in main()
98 assert(pA.use_count() == 0); in main()
109 assert(pA.use_count() == 1); in main()
Dweak_ptr_Y.pass.cpp65 assert(pA.use_count() == 0); in main()
72 assert(pB.use_count() == 0); in main()
73 assert(pA.use_count() == 0); in main()
75 assert(pA.use_count() == 0); in main()
83 assert(pA.use_count() == 0); in main()
90 assert(pB.use_count() == 0); in main()
91 assert(pA.use_count() == 0); in main()
93 assert(pA.use_count() == 0); in main()
104 assert(pB.use_count() == 1); in main()
Dshared_ptr_Y.pass.cpp61 assert(pA.use_count() == 1); in main()
68 assert(pB.use_count() == 1); in main()
69 assert(pA.use_count() == 1); in main()
71 assert(pA.use_count() == 1); in main()
79 assert(pA.use_count() == 0); in main()
86 assert(pB.use_count() == 0); in main()
87 assert(pA.use_count() == 0); in main()
89 assert(pA.use_count() == 0); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
Dexpired.pass.cpp34 assert(wp.use_count() == 0); in main()
35 assert(wp.expired() == (wp.use_count() == 0)); in main()
40 assert(wp.use_count() == 1); in main()
41 assert(wp.expired() == (wp.use_count() == 0)); in main()
43 assert(wp.use_count() == 0); in main()
44 assert(wp.expired() == (wp.use_count() == 0)); in main()
Dlock.pass.cpp35 assert(sp.use_count() == 0); in main()
43 assert(sp.use_count() == 2); in main()
53 assert(sp.use_count() == 0); in main()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_opt_coalesce_ff_writes.c42 uint32_t use_count[c->num_temps]; in qir_opt_coalesce_ff_writes() local
43 memset(&use_count, 0, sizeof(use_count)); in qir_opt_coalesce_ff_writes()
49 use_count[temp]++; in qir_opt_coalesce_ff_writes()
64 if (use_count[temp] != 1) in qir_opt_coalesce_ff_writes()
Dvc4_opt_vpm.c45 uint32_t use_count[c->num_temps]; in qir_opt_vpm() local
46 memset(&use_count, 0, sizeof(use_count)); in qir_opt_vpm()
52 use_count[temp]++; in qir_opt_vpm()
84 if (use_count[temp] != 1) in qir_opt_vpm()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
Dweak_ptr_Y.pass.cpp53 assert(pB.use_count() == 1); in main()
54 assert(pA.use_count() == 1); in main()
56 assert(pA.use_count() == 1); in main()
71 assert(pB.use_count() == 1); in main()
Dweak_ptr.pass.cpp53 assert(pB.use_count() == 1); in main()
54 assert(pA.use_count() == 1); in main()
56 assert(pA.use_count() == 1); in main()
71 assert(pB.use_count() == 1); in main()
Dshared_ptr_Y.pass.cpp52 assert(pB.use_count() == 1); in main()
53 assert(pA.use_count() == 1); in main()
55 assert(pA.use_count() == 1); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
Dreset.pass.cpp35 assert(w1.use_count() == 1); in main()
37 assert(w1.use_count() == 0); in main()
38 assert(p1.use_count() == 1); in main()
/external/perfetto/src/ipc/
Ddeferred_unittest.cc104 ASSERT_GE(num_callbacks.use_count(), 2); in TEST()
109 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()
122 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()
176 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()
216 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()
245 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()

123