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

Unified Diff: chrome/browser/sync/util/pthread_helpers.cc

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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 | « chrome/browser/sync/util/pthread_helpers.h ('k') | chrome/browser/sync/util/query_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/pthread_helpers.cc
===================================================================
--- chrome/browser/sync/util/pthread_helpers.cc (revision 26149)
+++ chrome/browser/sync/util/pthread_helpers.cc (working copy)
@@ -14,7 +14,7 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/sync/protocol/service_constants.h"
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
namespace {
@@ -60,10 +60,10 @@
} // namespace
-#endif // OS_WINDOWS
+#endif // OS_WIN
thread_handle CreatePThread(void *(*start) (void *), void* parameter) {
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
scoped_ptr<ThreadStartParams> param(new ThreadStartParams);
if (NULL == param.get())
return NULL;
@@ -98,11 +98,11 @@
} else {
return 0;
}
-#endif // OS_WINDOWS
+#endif // OS_WIN
}
struct timespec GetPThreadAbsoluteTime(uint32 ms) {
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
FILETIME filenow;
GetSystemTimeAsFileTime(&filenow);
ULARGE_INTEGER n;
@@ -130,11 +130,11 @@
deadline.tv_sec += ms / 1000;
deadline.tv_nsec = (ms % 1000) * 1000000;
return deadline;
-#endif // OS_WINDOWS
+#endif // OS_WIN
}
void NameCurrentThreadForDebugging(char* name) {
-#if defined(OS_WINDOWS)
+#if defined(OS_WIN)
// This implementation is taken from Chromium's platform_thread framework.
// The information on how to set the thread name comes from a MSDN article:
// http://msdn2.microsoft.com/en-us/library/xcb2z8hs.aspx
@@ -158,5 +158,5 @@
reinterpret_cast<DWORD_PTR*>(&info));
} __except(EXCEPTION_CONTINUE_EXECUTION) {
}
-#endif // defined(OS_WINDOWS)
+#endif // defined(OS_WIN)
}
« no previous file with comments | « chrome/browser/sync/util/pthread_helpers.h ('k') | chrome/browser/sync/util/query_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698