src/core/common/bind.hpp
void bind_to_core(cpu_set_t mask)
{
    if (sched_setaffinity(0, sizeof(mask), &mask) != 0)
        logstream(LOG_ERROR) << "Fail to set affinity!" << LOG_endl;
}
/*
 * Bind the current thread to special cores (mask)
 */
Bind the current thread to special cores (mask)
Bind the current thread to special cores ( mask )
void bind_to_core(cpu_set_t mask)
{
    if (sched_setaffinity(0, sizeof(mask), &mask) != 0)
        logstream(LOG_ERROR) << "Fail to set affinity!" << LOG_endl;
}
void bind_to_core ( cpu_set_t mask ) { if ( sched_setaffinity ( 0 , sizeof ( mask ) , & mask ) != 0 ) logstream ( LOG_ERROR ) << " " << LOG_endl ; }
Bind the current thread to special cores (mask)
Bind the current thread to special cores ( mask )