MCPcopy Create free account
hub / github.com/axboe/liburing / setProcessScheduler

Function setProcessScheduler

examples/napi-busy-poll-server.c:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static void setProcessScheduler(void)
133{
134 struct sched_param param;
135
136 param.sched_priority = sched_get_priority_max(SCHED_FIFO);
137 if (sched_setscheduler(0, SCHED_FIFO, &param) < 0)
138 fprintf(stderr, "sched_setscheduler() failed: (%d) %s\n",
139 errno, strerror(errno));
140}
141
142static uint64_t encodeUserData(char type, int fd)
143{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected