helpers.h 512 B

123456789101112131415161718192021222324
  1. #ifndef CORE_HELPERS_H
  2. #define CORE_HELPERS_H
  3. #include <string>
  4. #include <string_view>
  5. #include <vector>
  6. struct PathNamePair {
  7. std::string path, fname;
  8. };
  9. const PathNamePair &GetProcBinary();
  10. /* Mixing thread priority level */
  11. inline int RTPrioLevel{1};
  12. /* Allow reducing the process's RTTime limit for RTKit. */
  13. inline bool AllowRTTimeLimit{true};
  14. void SetRTPriority();
  15. std::vector<std::string> SearchDataFiles(const std::string_view ext, const std::string_view subdir);
  16. #endif /* CORE_HELPERS_H */