| /oneTBB/include/oneapi/tbb/ |
| H A D | spin_mutex.h | 45 class spin_mutex { 48 spin_mutex() noexcept : m_flag(false) { in spin_mutex() function 53 ~spin_mutex() = default; 56 spin_mutex(const spin_mutex&) = delete; 57 spin_mutex& operator=(const spin_mutex&) = delete; 59 using scoped_lock = unique_scoped_lock<spin_mutex>; 96 inline void set_name(spin_mutex& obj, const char* name) { in set_name() 105 inline void set_name(spin_mutex&, const char*) {} in set_name() argument 107 inline void set_name(spin_mutex&, const wchar_t*) {} in set_name() argument 114 using detail::d1::spin_mutex; [all …]
|
| H A D | flow_graph.h | 316 spin_mutex::scoped_lock l(my_mutex); in register_predecessor() 326 spin_mutex::scoped_lock l(my_mutex); in remove_predecessor() 353 spin_mutex my_mutex; 588 spin_mutex::scoped_lock lock(my_mutex); in __TBB_requires() 597 spin_mutex::scoped_lock lock(my_mutex); in __TBB_requires() 604 spin_mutex::scoped_lock lock(my_mutex); in __TBB_requires() 622 spin_mutex::scoped_lock lock(my_mutex); in __TBB_requires() 639 spin_mutex::scoped_lock lock(my_mutex); in __TBB_requires() 690 spin_mutex my_mutex; in __TBB_requires() 1891 spin_mutex my_mutex; [all …]
|
| /oneTBB/src/tbb/ |
| H A D | global_control.cpp | 50 spin_mutex my_list_mutex{}; 61 spin_mutex::scoped_lock lock(my_list_mutex); // protect my_list.empty() call in active_value() 84 spin_mutex::scoped_lock lock(my_list_mutex); // protect my_list.empty() call in active_value() 193 spin_mutex::scoped_lock lock(c->my_list_mutex); in create() 206 spin_mutex::scoped_lock lock(c->my_list_mutex); in destroy() 229 spin_mutex::scoped_lock lock(c->my_list_mutex); in remove_and_check_if_empty() 239 spin_mutex::scoped_lock lock(c->my_list_mutex); in is_present()
|
| H A D | arena.h | 61 tbb::spin_mutex my_co_cache_mutex; 101 tbb::spin_mutex::scoped_lock lock(my_co_cache_mutex); in push() 119 tbb::spin_mutex::scoped_lock lock(my_co_cache_mutex); in pop()
|
| H A D | parallel_pipeline.cpp | 130 spin_mutex array_mutex; 189 spin_mutex::scoped_lock lock( array_mutex ); in try_put_token() 219 spin_mutex::scoped_lock lock( array_mutex ); in try_to_spawn_task_for_next_token()
|
| H A D | scheduler_common.h | 32 #define __TBB_SCHEDULER_MUTEX_TYPE tbb::spin_mutex
|
| /oneTBB/test/conformance/ |
| H A D | conformance_mutex.cpp | 39 GeneralTest<oneapi::tbb::spin_mutex>("Spin Mutex"); 61 TestTryAcquire<oneapi::tbb::spin_mutex>("Spin Mutex"); 100 GeneralTest<TBB_MutexFromISO_Mutex<oneapi::tbb::spin_mutex> >("ISO Spin Mutex"); 104 TestTryAcquire<TBB_MutexFromISO_Mutex<oneapi::tbb::spin_mutex> >("ISO Spin Mutex");
|
| /oneTBB/examples/graph/dining_philosophers/ |
| H A D | dining_philosophers.cpp | 103 oneapi::tbb::spin_mutex my_mutex; 208 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in forward() 216 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in eat() 221 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in eat() 228 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in think() 233 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in think() 285 oneapi::tbb::spin_mutex::scoped_lock lock(my_mutex); in main()
|
| /oneTBB/examples/parallel_for/polygon_overlay/ |
| H A D | polyover.cpp | 50 oneapi::tbb::spin_mutex *rMutex) { in OverlayOnePolygonWithMap() 68 oneapi::tbb::spin_mutex::scoped_lock lock(*rMutex); in OverlayOnePolygonWithMap() 107 oneapi::tbb::spin_mutex *m_rMutex; 124 oneapi::tbb::spin_mutex *rmutex) in ApplyOverlay() 154 oneapi::tbb::spin_mutex *resultMutex = new oneapi::tbb::spin_mutex(); in NaiveParallelOverlay() 325 oneapi::tbb::spin_mutex *m_rMutex; 337 oneapi::tbb::spin_mutex::scoped_lock lock(*m_rMutex); in operator ()() 374 oneapi::tbb::spin_mutex::scoped_lock lock(*m_rMutex); in operator ()() 387 oneapi::tbb::spin_mutex *rmutex) in ApplySplitOverlay() 408 oneapi::tbb::spin_mutex *resultMutex; in SplitParallelOverlay() [all …]
|
| H A D | polyover.hpp | 31 oneapi::tbb::spin_mutex *rMutex);
|
| /oneTBB/doc/main/tbb_userguide/ |
| H A D | Mutex_Flavors.rst | 46 - ``spin_mutex`` is non-scalable, unfair, non-recursive, and spins in 50 among many ``spin_mutex`` objects, you can improve performance over 56 - ``mutex`` has behavior similar to the ``spin_mutex``. However, 66 ``spin_mutex`` and ``queuing_mutex``, but additionally support 75 similar to ``spin_mutex`` and ``spin_rw_mutex``, but additionally 106 * - \ ``spin_mutex``
|
| H A D | Mutual_Exclusion.rst | 14 The simplest mutex is ``spin_mutex``. A thread trying to acquire a lock 15 on a ``spin_mutex`` busy waits until it can acquire the lock. A 16 ``spin_mutex`` is appropriate when the lock is held for only a few 24 typedef spin_mutex FreeListMutexType;
|
| /oneTBB/examples/concurrent_priority_queue/shortpath/ |
| H A D | shortpath.cpp | 96 oneapi::tbb::spin_mutex* locks; // a lock for each vertex 131 oneapi::tbb::spin_mutex::scoped_lock l(locks[u]); in shortpath_helper() 143 oneapi::tbb::spin_mutex::scoped_lock l(locks[v]); in shortpath_helper() 220 locks = new oneapi::tbb::spin_mutex[N]; in InitializeGraph()
|
| /oneTBB/test/tbb/ |
| H A D | test_mutex.cpp | 144 test_with_native_threads::test<tbb::spin_mutex>(); 194 …static_assert(mutexes<tbb::spin_mutex, oneapi::tbb::mutex, tbb::speculative_spin_mutex, tbb::null_…
|
| H A D | test_profiling.cpp | 34 TEST_CASE_TEMPLATE("Mutexes set_name", Mutex, tbb::spin_mutex, 48 TEST_CASE_TEMPLATE("Mutexes set_name wchar", Mutex, tbb::spin_mutex,
|
| H A D | test_hw_concurrency.cpp | 82 tbb::spin_mutex sm;
|
| H A D | test_tbb_header.cpp | 228 TestTypeDefinitionPresence( spin_mutex ); in DefinitionPresence()
|
| H A D | test_task_arena.cpp | 1613 tbb::spin_mutex random_operation_guard; in StressTestMixFunctionality() 1616 tbb::spin_mutex::scoped_lock lock(random_operation_guard); in StressTestMixFunctionality() 1621 tbb::spin_mutex random_arena_guard; in StressTestMixFunctionality() 1623 tbb::spin_mutex::scoped_lock lock(random_arena_guard); in StressTestMixFunctionality()
|
| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | trace.tbb1d.cpp | 77 static oneapi::tbb::spin_mutex MyMutex, MyMutex2; 116 oneapi::tbb::spin_mutex::scoped_lock lock(MyMutex); in render_one_pixel()
|
| H A D | trace.tbb.cpp | 100 static oneapi::tbb::spin_mutex MyMutex, MyMutex2; 145 oneapi::tbb::spin_mutex::scoped_lock lock(MyMutex); in render_one_pixel()
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _flow_graph_cache_impl.h | 27 template< typename T, typename M=spin_mutex > 88 template< typename T, typename M=spin_mutex > 146 template< typename T, typename M=spin_mutex >
|
| H A D | _rtm_mutex.h | 44 class alignas(max_nfs_size) rtm_mutex : private spin_mutex { in alignas()
|
| H A D | _concurrent_queue_base.h | 130 spin_mutex::scoped_lock lock( page_mutex ); in prepare_page() 267 spin_mutex::scoped_lock lock( page_mutex ); in invalidate_page() 357 spin_mutex page_mutex{}; 381 spin_mutex::scoped_lock lock( my_queue.page_mutex ); in ~micro_queue_pop_finalizer()
|
| H A D | _flow_graph_impl.h | 344 tbb::spin_mutex nodelist_mutex;
|
| /oneTBB/test/common/ |
| H A D | common_arena_constraints.h | 462 tbb::spin_mutex affinity_mutex{}; in get_arena_affinity() 466 tbb::spin_mutex::scoped_lock lock(affinity_mutex); in get_arena_affinity()
|