/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/util/batchpriority.cpp
26 строк
642 B
stickies-v
logging: use util/log.h where possible
02 фев 2026, 20:22
02 фев 2026, 20:22
37cc2a2
Код
Авторство
О чём код?
// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/batchpriority.h> #include <util/log.h> #include <util/syserror.h> #include <string> #ifndef WIN32 #include <pthread.h> #include <sched.h> #endif void ScheduleBatchPriority() { #ifdef SCHED_BATCH const static sched_param param{}; const int rc = pthread_setschedparam(pthread_self(), SCHED_BATCH, ¶m); if (rc != 0) { LogWarning("Failed to pthread_setschedparam: %s", SysErrorString(rc)); } #endif }