OSDN Git Service

ui/Fence: change the TIMEOUT_NEVER value to -1
authorJamie Gennis <jgennis@google.com>
Wed, 22 Aug 2012 00:03:18 +0000 (17:03 -0700)
committerErik Gilling <konkers@android.com>
Wed, 22 Aug 2012 02:07:30 +0000 (19:07 -0700)
Change-Id: I3ef0a4c06f80990b53a8bf2eda6edbfcbefd0f34

include/ui/Fence.h

index 17cb018..b516a22 100644 (file)
@@ -18,7 +18,6 @@
 #define ANDROID_FENCE_H
 
 #include <stdint.h>
-#include <limits.h>
 #include <sys/types.h>
 
 #include <ui/ANativeObjectBase.h>
@@ -65,7 +64,7 @@ public:
 
     // TIMEOUT_NEVER may be passed to the wait method to indicate that it
     // should wait indefinitely for the fence to signal.
-    enum { TIMEOUT_NEVER = UINT_MAX };
+    enum { TIMEOUT_NEVER = -1 };
 
     // merge combines two Fence objects, creating a new Fence object that
     // becomes signaled when both f1 and f2 are signaled (even if f1 or f2 is