File: ThreadPrioHelper.hpp

package info (click to toggle)
soapyremote 0.5.2-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: cpp: 7,724; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2015-2015 Josh Blum
// SPDX-License-Identifier: BSL-1.0

#pragma once

#include <string>

/*! Set the thread priority:
 * -1.0 (low), 0.0 (normal), and 1.0 (high)
 * Return a empty string on success,
 * otherwise an error message.
 */
std::string setThreadPrio(const double prio);