| /oneTBB/test/tbbmalloc/ |
| H A D | test_malloc_pure_c.c | 57 int curr_mode, res; in main() local 104 res = scalable_allocation_command(TBBMALLOC_CLEAN_ALL_BUFFERS, NULL); in main() 105 assert(res == TBBMALLOC_OK); in main() 106 res = scalable_allocation_command(TBBMALLOC_CLEAN_THREAD_BUFFERS, NULL); in main() 108 assert(res == TBBMALLOC_NO_EFFECT); in main() 110 res = scalable_allocation_command(TBBMALLOC_CLEAN_THREAD_BUFFERS, in main() 112 assert(res == TBBMALLOC_INVALID_PARAM); in main()
|
| H A D | test_malloc_pools.cpp | 635 rml::MemPoolError res = pool_create_v1(0, &okPolicy, &pool); in CreateUsablePool() local 636 if (res != rml::POOL_OK) { in CreateUsablePool() 696 rml::MemPoolError res = pool_create_v1(0, &nullPolicy, &pool); in TestPoolCreation() local 697 REQUIRE_MESSAGE(res==rml::INVALID_POLICY, "pool with empty pAlloc can't be created"); in TestPoolCreation() 698 res = pool_create_v1(0, &emptyFreePolicy, &pool); in TestPoolCreation() 699 REQUIRE_MESSAGE(res==rml::INVALID_POLICY, "pool with empty pFree can't be created"); in TestPoolCreation() 701 res = pool_create_v1(0, &okPolicy, &pool); in TestPoolCreation() 702 REQUIRE(res==rml::POOL_OK); in TestPoolCreation()
|
| /oneTBB/examples/migration/recursive_fibonacci/ |
| H A D | fibonacci.cpp | 54 auto res = measure(fibonacci_two_tasks, numbers, ntrial); in main() local 55 std::cout << "Fibonacci two tasks impl N = " << res.first << " Avg time = " << res.second in main() 58 res = measure(fibonacci_single_task, numbers, ntrial); in main() 59 std::cout << "Fibonacci single task impl N = " << res.first << " Avg time = " << res.second in main()
|
| /oneTBB/src/tbb/ |
| H A D | tcm_adaptor.cpp | 105 auto res = tcm_release_permit(my_permit_handle); in ~tcm_client() local 106 __TBB_ASSERT_EX(res == TCM_RESULT_SUCCESS, nullptr); in ~tcm_client() 134 auto res = tcm_get_permit_data(my_permit_handle, &new_permit); in actualize_permit() local 135 __TBB_ASSERT_EX(res == TCM_RESULT_SUCCESS, nullptr); in actualize_permit() 163 …tcm_result_t res = tcm_request_permit(client_id, my_permit_request, this, &my_permit_handle, nullp… in request_permit() local 164 __TBB_ASSERT_EX(res == TCM_RESULT_SUCCESS, nullptr); in request_permit() 169 tcm_result_t res = tcm_deactivate_permit(my_permit_handle); in deactivate_permit() local 170 __TBB_ASSERT_EX(res == TCM_RESULT_SUCCESS, nullptr); in deactivate_permit()
|
| H A D | dynamic_link.cpp | 252 …int res = dladdr( (void*)&dynamic_link, &dlinfo ); // any function inside the library can be used … in init_ap_data() 253 if ( !res ) { in init_ap_data() 383 auto res = GetModuleHandleEx(0, library, &library_handle); in global_symbols_link() local 384 __TBB_ASSERT_EX((res && library_handle) || (!res && !library_handle), nullptr); in global_symbols_link()
|
| H A D | rml_thread_monitor.h | 159 DWORD res = in join() local 162 __TBB_ASSERT( res==WAIT_OBJECT_0, nullptr); in join()
|
| H A D | threading_control.cpp | 325 bool res = my_pimpl->try_destroy_client(deleter); in try_destroy_client() local 326 if (res) { in try_destroy_client() 329 return res; in try_destroy_client()
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _aggregator.h | 78 OperationType* res = pending_operations.load(std::memory_order_relaxed); 80 op->next.store(res, std::memory_order_relaxed); 81 } while (!pending_operations.compare_exchange_strong(res, op)); 82 if (!res) { // first in the list; handle the operations
|
| /oneTBB/test/tbb/ |
| H A D | test_partitioner.cpp | 166 for (auto& res : results) { in test_custom_range() local 167 REQUIRE(res.size() == utils::get_platform_max_threads()); in test_custom_range() 169 std::size_t min_size = *std::min_element(res.begin(), res.end()); in test_custom_range() 170 for (auto elem : res) { in test_custom_range()
|
| H A D | test_parallel_scan.cpp | 263 Storage<T> res = ParallelScanFunctionalInvoker(range, Storage<T>(0), sb, jb, mode); in operator ()() local 266 res.my_total = init; in operator ()() 267 return res.my_total; in operator ()() 278 Storage<T> res = ParallelScanFunctionalInvoker(range, Storage<T>(0), in operator ()() local 288 res.my_total = init; in operator ()() 289 return res.my_total; in operator ()() 381 Storage<T> res = ParallelScanFunctionalInvoker(range, Storage<T>(0), in operator ()() local 391 res.my_total = init; in operator ()() 392 return res.my_total; in operator ()()
|
| H A D | test_concurrent_queue_whitebox.cpp | 54 bool res = q.try_pop(elem); in operator ()() local 55 CHECK_FAST(res); in operator ()()
|
| H A D | test_join_node.h | 275 bool res; 282 res = my_hash_buffer.find_with_key(kk, mv0); 284 res = my_hash_buffer.insert_with_key(mv1); 285 CHECK_MESSAGE( (res), "insert failed"); 286 res = my_hash_buffer.find_with_key(kk, mv0); 294 res = my_hash_buffer.find_with_key(kk, mv0); 295 CHECK_MESSAGE( (res), "find failed"); 302 res = my_hash_buffer.find_with_key(kk, mv0); 315 CHECK_MESSAGE( (res), "find failed"); 325 res = my_hash_buffer.insert_with_key(mv1); [all …]
|
| H A D | test_scheduler_mix.cpp | 82 int res = posix_memalign(&ptr, alignment, size); in aligned_malloc() 83 CHECK(res == 0); in aligned_malloc() 396 auto res = f(mArenaTable[idx], idx); local 397 if (res) { 398 return res;
|
| H A D | test_global_control.cpp | 100 bool res = tbb::finalize( init2.get(), std::nothrow ); in operator ()() local 101 REQUIRE( !res ); in operator ()()
|
| /oneTBB/src/tbb/tools_api/ |
| H A D | ittnotify_static.c | 1283 ssize_t res = 0; in __itt_get_lib_name() local 1286 if (res < 0) in __itt_get_lib_name() 1303 if (res < 0) in __itt_get_lib_name() 1317 if (res == -1) in __itt_get_lib_name() 1328 if (res == -1) in __itt_get_lib_name() 1335 if (res < 0) in __itt_get_lib_name() 1354 if (res == -1) in __itt_get_lib_name() 1412 res = (__itt_group_id)(res | group_list[i].id); in __itt_get_groups() 1424 res = (__itt_group_id)(res | group_list[i].id); in __itt_get_groups() 1425 return res; in __itt_get_groups() [all …]
|
| /oneTBB/src/tbbmalloc_proxy/ |
| H A D | proxy.cpp | 84 void* res = scalable_malloc(sz); in InternalOperatorNew() local 86 while (!res) { in InternalOperatorNew() 102 res = scalable_malloc(sz); in InternalOperatorNew() 105 return res; in InternalOperatorNew() 697 FRR_TYPE res = ReplaceFunction( dllName, funcName, newFunc, opcodes, origFunc ); in ReplaceFunctionWithStore() local 699 if (res == FRR_OK || res == FRR_NODLL || (res == FRR_NOFUNC && on_error == FRR_IGNORE)) in ReplaceFunctionWithStore() 703 res==FRR_NOFUNC? "find" : "replace", funcName, dllName); in ReplaceFunctionWithStore()
|
| /oneTBB/test/conformance/ |
| H A D | conformance_global_control.cpp | 319 bool res = tbb::finalize(handle, std::nothrow); in __anon3ebcafb90102() local 320 REQUIRE(res); in __anon3ebcafb90102() 333 bool res = tbb::finalize(handle, std::nothrow); variable 334 REQUIRE(res); 344 bool res = tbb::finalize(handle, std::nothrow); variable 345 REQUIRE(res);
|
| /oneTBB/src/tbbmalloc/ |
| H A D | backref.cpp | 265 BackRefIdx res; in newBackRef() local 309 res.main = blockToUse->myNum; in newBackRef() 314 res.offset = offset; in newBackRef() 315 if (largeObj) res.largeObj = largeObj; in newBackRef() 317 return res; in newBackRef()
|
| H A D | backend.cpp | 85 void *res = nullptr; in allocRawMem() local 96 res = (*extMemPool->rawAlloc)(extMemPool->poolId, allocSize); in allocRawMem() 109 if (!res && hugePages.isTHPAvailable) { in allocRawMem() 110 res = getRawMemory(allocSize, TRANSPARENT_HUGE_PAGE); in allocRawMem() 114 if (!res) { in allocRawMem() 115 res = getRawMemory(allocSize, REGULAR); in allocRawMem() 119 if (res) { in allocRawMem() 123 usedAddrRange.registerAlloc((uintptr_t)res, (uintptr_t)res+size); in allocRawMem() 131 return res; in allocRawMem() 1417 bool res = false; in clean() local [all …]
|
| H A D | large_objects.cpp | 150 LargeMemoryBlock **res; member 162 LargeMemoryBlock **res; member 168 LargeMemoryBlock **res; member 255 *opCast<OpGet>(*opGet).res = head; in getFromPutList() 389 if ( LargeMemoryBlock *res = bin->get() ) { in operator ()() local 392 bin->updateMeanHitRange( getTime - res->age); in operator ()() 394 *opGetData.res = res; in operator ()() 428 *opCast<OpCleanAll>(*opClean).res = bin->cleanAll(bitMask, idx); in operator ()() 430 … *opCast<OpCleanToThreshold>(*opClean).res = bin->cleanToThreshold(prep.cleanTime, bitMask, idx); in operator ()()
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | memory_pool.h | 206 rml::MemPoolError res = rml::pool_create_v1(intptr_t(this), &args, &my_pool); in memory_pool() local 207 if (res!=rml::POOL_OK) in memory_pool() 249 rml::MemPoolError res = rml::pool_create_v1(intptr_t(this), &args, &my_pool); in fixed_pool() local 250 if (res!=rml::POOL_OK) in fixed_pool()
|
| H A D | task_group.h | 90 task* res = task_ptr_or_nullptr(m_func); in execute() local 92 return res; in execute() 452 task* res = d2::task_ptr_or_nullptr(m_func); in execute() local 454 return res; in execute() 481 task* res = d2::task_ptr_or_nullptr(m_func); in execute() local 483 return res; in execute()
|
| /oneTBB/examples/common/gui/ |
| H A D | CMakeLists.txt | 53 …${RC} /r -fo ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.res ${PROJECT_SOURCE_DIR}/gui/${PROJECT_NAME}.rc 58 target_link_options(UI_LIB_${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.res) 60 …_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.res)
|
| /oneTBB/test/common/ |
| H A D | utils_report.h | 137 bool res = first_call; in not_the_first_call() local 139 return res; in not_the_first_call()
|
| /oneTBB/python/tbb/ |
| H A D | test.py | 75 res = str(mseconds) 81 return res
|