Small type improvements
This commit is contained in:
@@ -152,7 +152,7 @@ void post_available_blocks(sm::block* calc_block, PIVector<sm::block*>& new_avai
|
||||
|
||||
sm::time_report algorithm_runnable(std::atomic_flag& block_pool_flag,
|
||||
PIVector<sm::block*>& block_pool,
|
||||
std::atomic_int& waiting_threads_flags,
|
||||
std::atomic_uint& waiting_threads_flags,
|
||||
unsigned i, unsigned thread_count) {
|
||||
bool is_block_pool_empty;
|
||||
bool is_block_pool_empty_old;
|
||||
@@ -167,7 +167,7 @@ sm::time_report algorithm_runnable(std::atomic_flag& block_pool_flag,
|
||||
new_available_blocks.clear();
|
||||
|
||||
if (is_block_pool_empty) {
|
||||
int waiting_threads_val;
|
||||
unsigned waiting_threads_val;
|
||||
if (is_block_pool_empty_old) {
|
||||
waiting_threads_val = waiting_threads_flags.load(std::memory_order_acquire);
|
||||
} else {
|
||||
@@ -202,7 +202,7 @@ sm::time_report algorithm_runnable(std::atomic_flag& block_pool_flag,
|
||||
}
|
||||
|
||||
std::vector<std::future<sm::time_report>> check_performance(const PIVector<sm::block*>& start_blocks, const unsigned thread_count) {
|
||||
std::atomic_int waiting_threads_flags(0);
|
||||
std::atomic_uint waiting_threads_flags(0);
|
||||
std::atomic_flag block_pool_flag = ATOMIC_FLAG_INIT;
|
||||
PIVector<sm::block*> block_pool = start_blocks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user