Grok 12.0.1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
hwy::PoolBarrier Class Reference

#include <thread_pool.h>

Public Member Functions

void Reset ()
 
void WorkerArrive (size_t thread)
 
HWY_POOL_INLINE void WaitAll (size_t num_workers)
 

Private Attributes

std::atomic< uint64_t > num_finished_ [4 *kU64PerCacheLine]
 

Static Private Attributes

static constexpr size_t kU64PerCacheLine = HWY_ALIGNMENT / sizeof(uint64_t)
 

Member Function Documentation

◆ Reset()

void hwy::PoolBarrier::Reset ( )
inline

Referenced by hwy::ThreadPool::Run().

◆ WaitAll()

HWY_POOL_INLINE void hwy::PoolBarrier::WaitAll ( size_t num_workers)
inline

References hwy::Pause().

Referenced by hwy::ThreadPool::Run().

◆ WorkerArrive()

void hwy::PoolBarrier::WorkerArrive ( size_t thread)
inline

Member Data Documentation

◆ kU64PerCacheLine

constexpr size_t hwy::PoolBarrier::kU64PerCacheLine = HWY_ALIGNMENT / sizeof(uint64_t)
staticconstexprprivate

◆ num_finished_

std::atomic<uint64_t> hwy::PoolBarrier::num_finished_[4 *kU64PerCacheLine]
private

The documentation for this class was generated from the following file: