-
Mauritz Sundell authored
As part of replacing use of MY_ALIGNED macro with now standard c++ alignas specifier the aligned version of thr_spin_lock type was removed. Which made the elements in m_receive_lock unaligned. - MY_ALIGNED(NDB_CL) - struct MY_ALIGNED(NDB_CL) aligned_locks : public thr_spin_lock - { - } m_receive_lock[MAX_NDBMT_RECEIVE_THREADS]; + alignas(NDB_CL) thr_spin_lock m_receive_lock[MAX_NDBMT_RECEIVE_THREADS]; A new type thr_aligned_spin_lock is introduced to be used with m_receive_lock to make elements cache line aligned again. Reviewed by Magnus Blåudd
Mauritz Sundell authoredAs part of replacing use of MY_ALIGNED macro with now standard c++ alignas specifier the aligned version of thr_spin_lock type was removed. Which made the elements in m_receive_lock unaligned. - MY_ALIGNED(NDB_CL) - struct MY_ALIGNED(NDB_CL) aligned_locks : public thr_spin_lock - { - } m_receive_lock[MAX_NDBMT_RECEIVE_THREADS]; + alignas(NDB_CL) thr_spin_lock m_receive_lock[MAX_NDBMT_RECEIVE_THREADS]; A new type thr_aligned_spin_lock is introduced to be used with m_receive_lock to make elements cache line aligned again. Reviewed by Magnus Blåudd
Loading