MCPcopy Create free account
hub / github.com/apache/impala / GetSchedulingPriority

Function GetSchedulingPriority

be/src/kudu/util/thread.cc:153–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static int32_t GetSchedulingPriority() {
154 const int saved_errno = errno;
155 SCOPED_CLEANUP({
156 errno = saved_errno;
157 });
158 errno = 0;
159 int prio = getpriority(PRIO_PROCESS, getpid());
160 // No errors expected here per the manual page for the getpriority() syscall:
161 // see https://man7.org/linux/man-pages/man2/setpriority.2.html.
162 PCHECK(errno == 0);
163 return prio;
164}
165
166class ThreadMgr;
167

Callers 1

StartInstrumentationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected