OoOJoin  0.0.1
The next generation of out-of-order join operator
INTELLI::UtilityFunctions Class Reference

Static Public Member Functions

static std::shared_ptr< std::barrier<> > createBarrier (int count)
 
static size_t timeLast (size_t past, size_t unitTime)
 
static size_t timeLastUs (struct timeval past)
 
static int bind2Core (int id)
 
static std::vector< size_t > avgPartitionSizeFinal (size_t inS, std::vector< size_t > partitionWeight)
 
static std::vector< size_t > weightedPartitionSizeFinal (size_t inS, std::vector< size_t > partitionWeight)
 
static size_t to_periodical (size_t val, size_t period)
 

Member Function Documentation

◆ bind2Core()

int INTELLI::UtilityFunctions::bind2Core ( int  id)
static

bind to CPU

  • bind the thread to core according to id
    Parameters
    idthe core you plan to bind, -1 means let os decide
    Returns
    cpuId, the real core that bind to
    Todo:
    unsure about hyper-thread

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