Skip to content

Commit

Permalink
removing duplicated itens from last merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SENAI-GilmarCorreia committed Oct 30, 2024
1 parent c280bb5 commit 0ba71e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/thread_priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,13 @@ bool configure_sched_fifo(int priority)
HANDLE thread = GetCurrentThread();
return SetThreadPriority(thread, priority);
}

#else
bool configure_sched_fifo(int priority)
{
#ifdef _WIN32
HANDLE thread = GetCurrentThread();
return SetThreadPriority(thread, priority);
#else
struct sched_param schedp;
memset(&schedp, 0, sizeof(schedp));
schedp.sched_priority = priority;
return !sched_setscheduler(0, SCHED_FIFO, &schedp);
#endif
}

bool is_capable(cap_value_t v)
Expand Down Expand Up @@ -118,6 +112,5 @@ bool lock_memory(std::string & message)
return true;
}
}

#endif
} // namespace realtime_tools

0 comments on commit 0ba71e4

Please sign in to comment.