llarp::util::MultithreadedHasher
More...
Public Classes
Public Functions
Detailed Description
template <typename T ,
typename Hash_t ,
typename HashFunc_t =std::function<void(const uint8_t*, size_t, Hash_t&)>,
typename GetHashRef_t =std::function<Hash_t&(T&)>>
struct llarp::util::MultithreadedHasher;
Public Functions Documentation
function async_hash_vec
inline void async_hash_vec(
std::vector< T > vec
)
function poll_hashed_data
inline std::vector< T > poll_hashed_data()
function start
inline void start(
size_t N_threads,
std::function< void(void)> notify_ready =[]() {}
)
function stop
inline void stop()
function MultithreadedHasher
inline explicit MultithreadedHasher(
HashFunc_t hash_func,
GetHashRef_t get_hash
)
Updated on 2026-01-10 at 22:49:45 +0000