Bitcoin Core  25.99.0
P2P Digital Currency
Functions | Variables
system.cpp File Reference
#include <util/system.h>
#include <logging.h>
#include <util/string.h>
#include <util/syserror.h>
#include <util/time.h>
#include <sched.h>
#include <sys/stat.h>
#include <cstdlib>
#include <locale>
#include <stdexcept>
#include <string>
#include <thread>
Include dependency graph for system.cpp:

Go to the source code of this file.

Functions

std::string ShellEscape (const std::string &arg)
 
void SetupEnvironment ()
 
bool SetupNetworking ()
 
int GetNumCores ()
 Return the number of cores available on the current system. More...
 
int64_t GetStartupTime ()
 
void ScheduleBatchPriority ()
 On platforms that support it, tell the kernel the calling thread is CPU-intensive and non-interactive. More...
 

Variables

const int64_t nStartupTime = GetTime()
 

Function Documentation

◆ GetNumCores()

int GetNumCores ( )

Return the number of cores available on the current system.

Note
This does count virtual cores, such as those provided by HyperThreading.

Definition at line 105 of file system.cpp.

Here is the caller graph for this function:

◆ GetStartupTime()

int64_t GetStartupTime ( )

Definition at line 111 of file system.cpp.

Here is the caller graph for this function:

◆ ScheduleBatchPriority()

void ScheduleBatchPriority ( )

On platforms that support it, tell the kernel the calling thread is CPU-intensive and non-interactive.

See SCHED_BATCH in sched(7) for details.

Definition at line 116 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetupEnvironment()

void SetupEnvironment ( )

Definition at line 61 of file system.cpp.

Here is the caller graph for this function:

◆ SetupNetworking()

bool SetupNetworking ( )

Definition at line 93 of file system.cpp.

Here is the caller graph for this function:

◆ ShellEscape()

std::string ShellEscape ( const std::string &  arg)

Definition at line 39 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nStartupTime

const int64_t nStartupTime = GetTime()

Definition at line 36 of file system.cpp.