From 8fb2d25ff3e9ade7c03ebe52a89c671ee75ce484 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Mon, 26 Jan 2015 19:45:47 -0800 Subject: [PATCH] Kill HAVE_PTHREADS. Bug: 19083585 Change-Id: I355491de945590f43c82bdcb7968b01b4bff6e06 --- libs/binder/IPCThreadState.cpp | 15 ++++----------- services/surfaceflinger/main_surfaceflinger.cpp | 5 +---- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 2043d542c..9f68aa8a0 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -29,21 +29,14 @@ #include #include -#include -#include #include -#include -#include - -#ifdef HAVE_PTHREADS #include #include +#include +#include +#include #include -#endif -#ifdef HAVE_WIN32_THREADS -#include -#endif - +#include #if LOG_NDEBUG diff --git a/services/surfaceflinger/main_surfaceflinger.cpp b/services/surfaceflinger/main_surfaceflinger.cpp index 90e3f7de9..a74bc4cd9 100644 --- a/services/surfaceflinger/main_surfaceflinger.cpp +++ b/services/surfaceflinger/main_surfaceflinger.cpp @@ -14,9 +14,7 @@ * limitations under the License. */ -#if defined(HAVE_PTHREADS) #include -#endif #include #include @@ -39,9 +37,8 @@ int main(int, char**) { // instantiate surfaceflinger sp flinger = new SurfaceFlinger(); -#if defined(HAVE_PTHREADS) setpriority(PRIO_PROCESS, 0, PRIORITY_URGENT_DISPLAY); -#endif + set_sched_policy(0, SP_FOREGROUND); // initialize before clients can connect