equal
deleted
inserted
replaced
72 _stop_task = (((size_t)1) << tmp); |
72 _stop_task = (((size_t)1) << tmp); |
73 } |
73 } |
74 |
74 |
75 // Returns false if all ranges are claimed. |
75 // Returns false if all ranges are claimed. |
76 bool have_more_work() { |
76 bool have_more_work() { |
77 return OrderAccess::load_acquire(&_next_to_claim) >= _stop_task; |
77 return Atomic::load_acquire(&_next_to_claim) >= _stop_task; |
78 } |
78 } |
79 |
79 |
80 void thread_owns_resize_lock(Thread* thread) { |
80 void thread_owns_resize_lock(Thread* thread) { |
81 assert(BucketsOperation::_cht->_resize_lock_owner == thread, |
81 assert(BucketsOperation::_cht->_resize_lock_owner == thread, |
82 "Should be locked by me"); |
82 "Should be locked by me"); |