| /oneTBB/test/common/ |
| H A D | container_move_support.h | 345 return std::equal(dst.begin(), dst.end(), locations.begin(), is_same_location); in content_location_unchanged() 353 return std::equal(dst.begin(), dst.end(), locations.begin(), is_not_same_location); in content_location_changed() 484 …REQUIRE(std::equal(dst.begin(), dst.begin() + number_of_constructed_items, init_iterator_type(0))); in verify_content_equal_to_source() 488 verify_size(dst); in verify_content_shallow_moved() 495 verify_size(dst); in verify_content_deep_moved() 497 … REQUIRE_MESSAGE(std::all_of(dst.begin(), dst.end(), is_state_predicate<Foo::MoveInitialized>()), in verify_content_deep_moved() 700 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateful_allocator() 720 container_type dst; in test_move_assignment_POCMA_true_stateless_allocator() local 721 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateless_allocator() 737 dst = std::move(fixture.source); in test_move_assignment_POCMA_false_equal_allocator() [all …]
|
| /oneTBB/examples/concurrent_priority_queue/shortpath/ |
| H A D | shortpath.cpp | 126 if (u == dst) in shortpath_helper() 174 path.push_back(dst); in make_path() 178 path.push_back(dst); in make_path() 185 make_path(src, dst, path); in print_path() 189 if (path[i] != dst) { in print_path() 200 if (path[i] != dst) in print_path() 295 (int)dst, in main() 299 if (dst >= N) { in main() 302 (int)dst, in main() 305 dst = N - 1; in main() [all …]
|
| /oneTBB/examples/parallel_for/game_of_life/ |
| H A D | Update_state.cpp | 26 dst[0] |= src[width - 1]; in create_record() 28 dst[0] |= src[i] << (i + 1); in create_record() 67 unsigned* dst = (unsigned*)&X[ind]; in shift_left2D() local 68 dst[301 / 32u] |= x0 << (301 % 32u); in shift_left2D() 87 unsigned* dst = (unsigned*)&X[ind]; in shift_right2D() local 132 create_record(src, dst, width); in UpdateState() 142 unsigned* dst = (unsigned*)X; in UpdateState() local 143 create_record(src, dst, width); in UpdateState() 153 create_record(src, dst, width); in UpdateState() 204 char* dst = &dest[(row + begin) * width]; in UpdateState() local [all …]
|
| /oneTBB/test/conformance/ |
| H A D | conformance_concurrent_priority_queue.cpp | 181 container_type dst{std::move(fixture.cpq_src)}; in test_steal_move_ctor() local 183 REQUIRE_MESSAGE(dst == src_copy, "cpq content changed during steal move"); in test_steal_move_ctor() 198 REQUIRE_MESSAGE(dst == src_copy, "cpq content changed during steal move"); in test_steal_move_ctor_with_allocator() 216 REQUIRE_MESSAGE(dst == src_copy, "cpq content changed during move"); in test_per_element_move_ctor_with_allocator() 217 REQUIRE_MESSAGE(!(dst != src_copy), "cpq content changed during move"); in test_per_element_move_ctor_with_allocator() 226 fixture_type::cpq_type dst; in test_steal_move_assign_operator() local 228 dst = std::move(fixture.cpq_src); in test_steal_move_assign_operator() 243 fixture_type::cpq_type dst(arena_fixture.dst_allocator); in test_steal_move_assign_operator_with_stateful_allocator() local 246 dst = std::move(fixture.cpq_src); in test_steal_move_assign_operator_with_stateful_allocator() 260 fixture_type::cpq_type dst(arena_fixture.dst_allocator); in test_per_element_move_assign_operator() local [all …]
|
| H A D | conformance_concurrent_queue.cpp | 1815 void test_check_move_allocator(Container& src, Container& dst, Container& cpy) { in test_check_move_allocator() argument 1817 …REQUIRE_MESSAGE(std::equal(dst.unsafe_begin(), dst.unsafe_end(), cpy.unsafe_begin()), "Elements ar… in test_check_move_allocator() 1825 tbb::concurrent_queue<std::vector<int>> dst(src.get_allocator()); in test_move_assignment_test_equal() local 1827 …REQUIRE_MESSAGE(src.get_allocator() == dst.get_allocator(), "Incorrect test setup: allocators shou… in test_move_assignment_test_equal() 1829 dst = std::move(src); in test_move_assignment_test_equal() 1838 test_check_move_allocator<tbb::concurrent_queue<std::vector<int>>>(src, dst, cpy); in test_move_assignment_test_equal() 1839 REQUIRE_MESSAGE(cpy.unsafe_size() == dst.unsafe_size(), "Queues are not equal"); in test_move_assignment_test_equal() 1858 …tbb::concurrent_queue<std::vector<int, stateful_allocator<int>>, stateful_allocator<int>> dst(dst_… in test_move_assignment_test_unequal() local 1860 …REQUIRE_MESSAGE(src.get_allocator() != dst.get_allocator(), "Incorrect test setup: allocators shou… in test_move_assignment_test_unequal() 1862 dst = std::move(src); in test_move_assignment_test_unequal() [all …]
|
| H A D | conformance_concurrent_vector.cpp | 693 vector_t dst(fixture.dst_allocator); in TestSerialGrowByWithMoveIterators() local 694 …dst.grow_by(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixture.sourc… in TestSerialGrowByWithMoveIterators() 696 fixture.verify_content_deep_moved(dst); in TestSerialGrowByWithMoveIterators()
|
| /oneTBB/src/tbb/ |
| H A D | misc.h | 176 T1 atomic_update(std::atomic<T1>& dst, T1 newValue, Pred compare) { in atomic_update() argument 177 T1 oldValue = dst.load(std::memory_order_acquire); in atomic_update() 179 if ( dst.compare_exchange_strong(oldValue, newValue) ) in atomic_update()
|
| H A D | dynamic_link.cpp | 402 static void save_library_handle( dynamic_link_handle src, dynamic_link_handle *dst ) { in save_library_handle() argument 404 if ( dst ) in save_library_handle() 405 *dst = src; in save_library_handle()
|
| /oneTBB/doc/main/tbb_userguide/design_patterns/ |
| H A D | Fenced_Data_Transfer.rst | 49 bool Receive( std::string& dst ) { // Executed by thread 2 51 if( result ) dst=Message; 105 bool Receive( std::string& dst ) { // Executed by thread 2 107 if( result ) dst=Message;
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | concurrent_queue.h | 32 std::pair<bool, ticket_type> internal_try_pop_impl(void* dst, QueueRep& queue, Allocator& alloc ) { in internal_try_pop_impl() argument 45 } while (!queue.choose(ticket).pop(dst, ticket, queue, alloc)); in internal_try_pop_impl() 249 bool internal_try_pop( void* dst ) { in internal_try_pop() argument 250 return internal_try_pop_impl(dst, *my_queue_representation, my_allocator).first; in internal_try_pop() 600 void internal_pop( void* dst ) { in internal_pop() argument 623 …} while (!my_queue_representation->choose(target).pop(dst, target, *my_queue_representation, my_al… in internal_pop() 628 bool internal_pop_if_present( void* dst ) { in internal_pop_if_present() argument 631 … std::tie(present, ticket) = internal_try_pop_impl(dst, *my_queue_representation, my_allocator); in internal_pop_if_present()
|
| H A D | concurrent_hash_map.h | 1490 bucket *dst = nullptr, *src = nullptr; in __TBB_requires() local 1493 if( k & (k-2) ) ++dst,src++; // not the beginning of a segment in __TBB_requires() 1494 else { dst = this->get_bucket( k ); src = source.get_bucket( k ); } in __TBB_requires() 1495 …__TBB_ASSERT(!rehash_required(dst->node_list.load(std::memory_order_relaxed)), "Invalid bucket in … in __TBB_requires() 1499 … dst->node_list.store(reinterpret_cast<node_base*>(rehash_req_flag), std::memory_order_relaxed); in __TBB_requires() 1502 this->add_to_bucket( dst, node_ptr); in __TBB_requires()
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _machine.h | 223 T dst; in machine_reverse_bits() 225 unsigned char *reversed = reinterpret_cast<unsigned char *>(&dst); in machine_reverse_bits() 231 return dst; in machine_reverse_bits()
|
| H A D | _concurrent_queue_base.h | 176 bool pop( void* dst, ticket_type k, queue_rep_type& base, queue_allocator_type& allocator ) { in pop() argument 192 assign_and_destroy_item(dst, *p, index); in pop() 327 void copy_item( padded_page& dst, size_type dindex, const padded_page& src, size_type sindex, in copy_item() argument 331 construct_item( &dst[dindex], static_cast<const void*>(&src_item) ); in copy_item() 334 void assign_and_destroy_item( void* dst, padded_page& src, size_type index ) { in assign_and_destroy_item() argument 337 *static_cast<T*>(dst) = std::move(from); in assign_and_destroy_item()
|
| /oneTBB/doc/_static/ |
| H A D | custom.js | 14 dst: '\\operatorname{dst}', property
|
| /oneTBB/test/tbb/ |
| H A D | test_parallel_for.cpp | 58 SSE_Functor( ClassWithVectorType* src, ClassWithVectorType* dst ) : Src(src), Dst(dst) {} in SSE_Functor()
|
| H A D | test_concurrent_vector.cpp | 111 vector_t dst(fixture.dst_allocator); in TestSerialGrowByWithMoveIterators() local 112 …dst.grow_by(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixture.sourc… in TestSerialGrowByWithMoveIterators() 114 fixture.verify_content_deep_moved(dst); in TestSerialGrowByWithMoveIterators()
|