Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Unified Diff: base/time/time.h

Issue 56973012: Implement Time::ThreadNow() on Mac. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: add checks to make sure that ThreadNow returns a non-zero value Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/time/time_mac.cc » ('j') | base/time/time_mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time.h
===================================================================
--- base/time/time.h (revision 232726)
+++ base/time/time.h (working copy)
@@ -548,7 +548,8 @@
// Returns true if ThreadNow() is supported on this system.
static bool IsThreadNowSupported() {
-#if defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)
+#if (defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)) || \
+ defined(OS_MACOSX)
Robert Sesek 2013/11/05 18:32:07 OS_IOS implies OS_MACOSX
fmeawad 2013/11/05 19:34:25 But ThreadNow is not supported for IOS yet, what a
Robert Sesek 2013/11/05 19:49:01 When you compile with OS_IOS, it sets OS_MACOSX=1
fmeawad 2013/11/05 21:59:49 Done.
return true;
#else
return false;
« no previous file with comments | « no previous file | base/time/time_mac.cc » ('j') | base/time/time_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698