Remove unused set_priority()/set_thread_priority()

This commit is contained in:
Robert Schmidt
2024-06-03 14:00:49 +02:00
parent 973d13937d
commit 8dc29be02f
4 changed files with 0 additions and 53 deletions
-15
View File
@@ -118,21 +118,6 @@ char *itoa(int i) {
return strdup(buffer);
}
void set_priority(int priority)
{
struct sched_param param =
{
.sched_priority = priority,
};
fprintf(stderr, "Calling sched_setscheduler(%d)\n", priority);
if (sched_setscheduler(0, SCHED_RR, &param) == -1)
{
fprintf(stderr, "sched_setscheduler: %s\n", strerror(errno));
abort();
}
}
/**
* @brief Convert a version string x.y.z into numbers.
*