diff options
Diffstat (limited to 'libutils/Threads.cpp')
-rw-r--r-- | libutils/Threads.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 55eadb07a..147db542d 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp @@ -302,8 +302,7 @@ void androidSetCreateThreadFunc(android_create_thread_fn func) } #if defined(__ANDROID__) -namespace { -int androidSetThreadPriorityInternal(pid_t tid, int pri, bool change_policy) { +int androidSetThreadPriority(pid_t tid, int pri, bool change_policy) { int rc = 0; int lasterr = 0; int curr_pri = getpriority(PRIO_PROCESS, tid); @@ -335,15 +334,6 @@ int androidSetThreadPriorityInternal(pid_t tid, int pri, bool change_policy) { return rc; } -} // namespace - -int androidSetThreadPriority(pid_t tid, int pri) { - return androidSetThreadPriorityInternal(tid, pri, true); -} - -int androidSetThreadPriorityAndPolicy(pid_t tid, int pri, bool change_policy) { - return androidSetThreadPriorityInternal(tid, pri, change_policy); -} int androidGetThreadPriority(pid_t tid) { return getpriority(PRIO_PROCESS, tid); |