/// Constructor. Creates the integer map. caching_dht(distributed_control &dc, size_t max_cache_size = 1024):rpc(dc, this),data(11) { cache.rehash(max_cache_size); maxcache = max_cache_size; logger(LOG_INFO, "%d Creating distributed_hash_table. Cache Limit = %d", dc.procid(), maxcache); reqs = 0; misses = 0; }
/// Constructor. Creates the integer map. lazy_dht(distributed_control &dc, size_t max_cache_size = 65536):rmi(dc, this),data(11) { cache.rehash(max_cache_size); maxcache = max_cache_size; logger(LOG_INFO, "%d Creating distributed_hash_table. Cache Limit = %d", dc.procid(), maxcache); reqs = 0; misses = 0; dc.barrier(); }
async_consensus::async_consensus(distributed_control &dc, size_t required_threads_in_done, const dc_impl::dc_dist_object_base *attach) :rmi(dc, this), attachedobj(attach), last_calls_sent(0), last_calls_received(0), required_threads_in_done(required_threads_in_done), threads_in_done(0), cancelled(0), complete(false), hastoken(dc.procid() == 0) { cur_token.total_calls_sent = 0; cur_token.total_calls_received = 0; cur_token.last_change = (procid_t)(rmi.numprocs() - 1); }
fiber_async_consensus::fiber_async_consensus(distributed_control &dc, size_t required_fibers_in_done, const dc_impl::dc_dist_object_base *attach) :rmi(dc, this), attachedobj(attach), last_calls_sent(0), last_calls_received(0), numactive(required_fibers_in_done), ncpus(required_fibers_in_done), done(false), trying_to_sleep(0), critical(ncpus, 0), sleeping(ncpus, 0), hastoken(dc.procid() == 0), cond(ncpus, 0){ cur_token.total_calls_sent = 0; cur_token.total_calls_received = 0; cur_token.last_change = (procid_t)(rmi.numprocs() - 1); }