Home
last modified time | relevance | path

Searched refs:spin_mutex (Results 1 – 25 of 28) sorted by relevance

12

/oneTBB/include/oneapi/tbb/
H A Dspin_mutex.h45 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 Dflow_graph.h316 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 Dglobal_control.cpp50 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 Darena.h61 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 Dparallel_pipeline.cpp130 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 Dscheduler_common.h32 #define __TBB_SCHEDULER_MUTEX_TYPE tbb::spin_mutex
/oneTBB/test/conformance/
H A Dconformance_mutex.cpp39 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 Ddining_philosophers.cpp103 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 Dpolyover.cpp50 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 Dpolyover.hpp31 oneapi::tbb::spin_mutex *rMutex);
/oneTBB/doc/main/tbb_userguide/
H A DMutex_Flavors.rst46 - ``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 DMutual_Exclusion.rst14 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 Dshortpath.cpp96 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 Dtest_mutex.cpp144 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 Dtest_profiling.cpp34 TEST_CASE_TEMPLATE("Mutexes set_name", Mutex, tbb::spin_mutex,
48 TEST_CASE_TEMPLATE("Mutexes set_name wchar", Mutex, tbb::spin_mutex,
H A Dtest_hw_concurrency.cpp82 tbb::spin_mutex sm;
H A Dtest_tbb_header.cpp228 TestTypeDefinitionPresence( spin_mutex ); in DefinitionPresence()
H A Dtest_task_arena.cpp1613 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 Dtrace.tbb1d.cpp77 static oneapi::tbb::spin_mutex MyMutex, MyMutex2;
116 oneapi::tbb::spin_mutex::scoped_lock lock(MyMutex); in render_one_pixel()
H A Dtrace.tbb.cpp100 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.h27 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.h44 class alignas(max_nfs_size) rtm_mutex : private spin_mutex { in alignas()
H A D_concurrent_queue_base.h130 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.h344 tbb::spin_mutex nodelist_mutex;
/oneTBB/test/common/
H A Dcommon_arena_constraints.h462 tbb::spin_mutex affinity_mutex{}; in get_arena_affinity()
466 tbb::spin_mutex::scoped_lock lock(affinity_mutex); in get_arena_affinity()

12