summaryrefslogtreecommitdiff
path: root/libs/hwui/thread/TaskManager.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-01-27 06:54:06 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-27 06:54:06 +0000
commitf70492898b3efa3c5f480f195062fa6f293bc764 (patch)
tree0c48396116094b6642fbc86973c3939d800ca7d3 /libs/hwui/thread/TaskManager.cpp
parent86b48b3f8056a8efa6857d87dd4f30495e8b0464 (diff)
parent3812e68ea788782c54c27f69d08bcc1419066cb2 (diff)
am 3812e68e: Merge "kill HAVE_PTHREADS."
* commit '3812e68ea788782c54c27f69d08bcc1419066cb2': kill HAVE_PTHREADS.
Diffstat (limited to 'libs/hwui/thread/TaskManager.cpp')
-rw-r--r--libs/hwui/thread/TaskManager.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/hwui/thread/TaskManager.cpp b/libs/hwui/thread/TaskManager.cpp
index cb5401cb86e8..3c30aab8ad80 100644
--- a/libs/hwui/thread/TaskManager.cpp
+++ b/libs/hwui/thread/TaskManager.cpp
@@ -14,10 +14,8 @@
* limitations under the License.
*/
-#include <sys/sysinfo.h>
-#if defined(HAVE_PTHREADS)
#include <sys/resource.h>
-#endif
+#include <sys/sysinfo.h>
#include "TaskManager.h"
#include "Task.h"
@@ -83,9 +81,7 @@ bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBa
///////////////////////////////////////////////////////////////////////////////
status_t TaskManager::WorkerThread::readyToRun() {
-#if defined(HAVE_PTHREADS)
setpriority(PRIO_PROCESS, 0, PRIORITY_FOREGROUND);
-#endif
return NO_ERROR;
}