LCOV - code coverage report
Current view: top level - src/util - batchpriority.cpp (source / functions) Coverage Total Hit
Test: test_bitcoin_coverage.info Lines: 0.0 % 6 0
Test Date: 2024-08-28 04:44:32 Functions: 0.0 % 1 0
Branches: 0.0 % 4 0

             Branch data     Line data    Source code
       1                 :             : // Copyright (c) 2023 The Bitcoin Core developers
       2                 :             : // Distributed under the MIT software license, see the accompanying
       3                 :             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4                 :             : 
       5                 :             : #include <logging.h>
       6                 :             : #include <util/syserror.h>
       7                 :             : 
       8                 :             : #if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
       9                 :             : #include <pthread.h>
      10                 :             : #include <pthread_np.h>
      11                 :             : #endif
      12                 :             : 
      13                 :             : #ifndef WIN32
      14                 :             : #include <sched.h>
      15                 :             : #endif
      16                 :             : 
      17                 :           0 : void ScheduleBatchPriority()
      18                 :             : {
      19                 :             : #ifdef SCHED_BATCH
      20                 :           0 :     const static sched_param param{};
      21                 :           0 :     const int rc = pthread_setschedparam(pthread_self(), SCHED_BATCH, &param);
      22         [ #  # ]:           0 :     if (rc != 0) {
      23         [ #  # ]:           0 :         LogPrintf("Failed to pthread_setschedparam: %s\n", SysErrorString(rc));
      24                 :             :     }
      25                 :             : #endif
      26                 :           0 : }
        

Generated by: LCOV version 2.0-1