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

Side by Side Diff: Source/wtf/ThreadingWin.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/wtf/ThreadingPrimitives.h ('k') | Source/wtf/tests/IntegerToStringConversion.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile, Inc. All rights reserved. 4 * Copyright (C) 2009 Torch Mobile, Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 * 79 *
80 * You should have received a copy of the GNU Lesser General Public 80 * You should have received a copy of the GNU Lesser General Public
81 * License along with this library in the file COPYING.LIB; 81 * License along with this library in the file COPYING.LIB;
82 * if not, write to the Free Software Foundation, Inc., 82 * if not, write to the Free Software Foundation, Inc.,
83 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 83 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
84 */ 84 */
85 85
86 #include "config.h" 86 #include "config.h"
87 #include "Threading.h" 87 #include "Threading.h"
88 88
89 #if OS(WINDOWS) 89 #if OS(WIN)
90 90
91 #include "wtf/CurrentTime.h" 91 #include "wtf/CurrentTime.h"
92 #include "wtf/DateMath.h" 92 #include "wtf/DateMath.h"
93 #include "wtf/HashMap.h" 93 #include "wtf/HashMap.h"
94 #include "wtf/MainThread.h" 94 #include "wtf/MainThread.h"
95 #include "wtf/MathExtras.h" 95 #include "wtf/MathExtras.h"
96 #include "wtf/OwnPtr.h" 96 #include "wtf/OwnPtr.h"
97 #include "wtf/PassOwnPtr.h" 97 #include "wtf/PassOwnPtr.h"
98 #include "wtf/RandomNumberSeed.h" 98 #include "wtf/RandomNumberSeed.h"
99 #include "wtf/ThreadFunctionInvocation.h" 99 #include "wtf/ThreadFunctionInvocation.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 // Time is too far in the future (and would overflow unsigned long) - wait f orever. 485 // Time is too far in the future (and would overflow unsigned long) - wait f orever.
486 if (absoluteTime - currentTime > static_cast<double>(INT_MAX) / 1000.0) 486 if (absoluteTime - currentTime > static_cast<double>(INT_MAX) / 1000.0)
487 return INFINITE; 487 return INFINITE;
488 488
489 return static_cast<DWORD>((absoluteTime - currentTime) * 1000.0); 489 return static_cast<DWORD>((absoluteTime - currentTime) * 1000.0);
490 } 490 }
491 491
492 } // namespace WTF 492 } // namespace WTF
493 493
494 #endif // OS(WINDOWS) 494 #endif // OS(WIN)
OLDNEW
« no previous file with comments | « Source/wtf/ThreadingPrimitives.h ('k') | Source/wtf/tests/IntegerToStringConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698