| 151 | } |
| 152 | |
| 153 | static 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 | |
| 166 | class ThreadMgr; |
| 167 |
no outgoing calls
no test coverage detected