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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/ThreadingWin.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * You should have received a copy of the GNU Lesser General Public 93 * You should have received a copy of the GNU Lesser General Public
94 * License along with this library in the file COPYING.LIB; 94 * License along with this library in the file COPYING.LIB;
95 * if not, write to the Free Software Foundation, Inc., 95 * if not, write to the Free Software Foundation, Inc.,
96 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 96 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
97 */ 97 */
98 98
99 #include "platform/wtf/Threading.h" 99 #include "platform/wtf/Threading.h"
100 100
101 #if OS(WIN) 101 #if OS(WIN)
102 102
103 #include <errno.h>
104 #include <process.h>
105 #include <windows.h>
103 #include "platform/wtf/CurrentTime.h" 106 #include "platform/wtf/CurrentTime.h"
104 #include "platform/wtf/DateMath.h" 107 #include "platform/wtf/DateMath.h"
105 #include "platform/wtf/HashMap.h" 108 #include "platform/wtf/HashMap.h"
106 #include "platform/wtf/MathExtras.h" 109 #include "platform/wtf/MathExtras.h"
107 #include "platform/wtf/ThreadSpecific.h" 110 #include "platform/wtf/ThreadSpecific.h"
108 #include "platform/wtf/ThreadingPrimitives.h" 111 #include "platform/wtf/ThreadingPrimitives.h"
109 #include "platform/wtf/WTFThreadData.h" 112 #include "platform/wtf/WTFThreadData.h"
110 #include "platform/wtf/dtoa/double-conversion.h" 113 #include "platform/wtf/dtoa/double-conversion.h"
111 #include <errno.h>
112 #include <process.h>
113 #include <windows.h>
114 114
115 namespace WTF { 115 namespace WTF {
116 116
117 // THREADNAME_INFO comes from 117 // THREADNAME_INFO comes from
118 // <http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx>. 118 // <http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx>.
119 #pragma pack(push, 8) 119 #pragma pack(push, 8)
120 typedef struct tagTHREADNAME_INFO { 120 typedef struct tagTHREADNAME_INFO {
121 DWORD dw_type; // must be 0x1000 121 DWORD dw_type; // must be 0x1000
122 LPCSTR sz_name; // pointer to name (in user addr space) 122 LPCSTR sz_name; // pointer to name (in user addr space)
123 DWORD dw_thread_id; // thread ID (-1=caller thread) 123 DWORD dw_thread_id; // thread ID (-1=caller thread)
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 void WillCreateThread() { 425 void WillCreateThread() {
426 MutexLocker locker(GetThreadCreatedMutex()); 426 MutexLocker locker(GetThreadCreatedMutex());
427 g_thread_created = true; 427 g_thread_created = true;
428 } 428 }
429 #endif 429 #endif
430 430
431 } // namespace WTF 431 } // namespace WTF
432 432
433 #endif // OS(WIN) 433 #endif // OS(WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698