MCPcopy Create free account
hub / github.com/ElementsProject/elements / ScheduleBatchPriority

Function ScheduleBatchPriority

src/util/system.cpp:1413–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411}
1412
1413void ScheduleBatchPriority()
1414{
1415#ifdef SCHED_BATCH
1416 const static sched_param param{};
1417 const int rc = pthread_setschedparam(pthread_self(), SCHED_BATCH, &param);
1418 if (rc != 0) {
1419 LogPrintf("Failed to pthread_setschedparam: %s\n", strerror(rc));
1420 }
1421#endif
1422}
1423
1424namespace util {
1425#ifdef WIN32

Callers 1

ThreadImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected