#!/bin/bash

source ./kernel_config_utils.sh

multithreading_check() {
    is_error=false
    if ! kernel_config_check CONFIG_EPOLL; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_SIGNALFD; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_TIMERFD; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_EVENTFD; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_FUTEX; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

