| OLD | NEW |
| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 89 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 90 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 90 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 91 * Lesser General Public License for more details. | 91 * Lesser General Public License for more details. |
| 92 * | 92 * |
| 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 "wtf/Threading.h" | 99 #include "platform/wtf/Threading.h" |
| 100 | 100 |
| 101 #if OS(WIN) | 101 #if OS(WIN) |
| 102 | 102 |
| 103 #include "wtf/CurrentTime.h" | 103 #include "platform/wtf/CurrentTime.h" |
| 104 #include "wtf/DateMath.h" | 104 #include "platform/wtf/DateMath.h" |
| 105 #include "wtf/HashMap.h" | 105 #include "platform/wtf/HashMap.h" |
| 106 #include "wtf/MathExtras.h" | 106 #include "platform/wtf/MathExtras.h" |
| 107 #include "wtf/ThreadSpecific.h" | 107 #include "platform/wtf/ThreadSpecific.h" |
| 108 #include "wtf/ThreadingPrimitives.h" | 108 #include "platform/wtf/ThreadingPrimitives.h" |
| 109 #include "wtf/WTFThreadData.h" | 109 #include "platform/wtf/WTFThreadData.h" |
| 110 #include "wtf/dtoa/double-conversion.h" | 110 #include "platform/wtf/dtoa/double-conversion.h" |
| 111 #include <errno.h> | 111 #include <errno.h> |
| 112 #include <process.h> | 112 #include <process.h> |
| 113 #include <windows.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 { |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 } | 417 } |
| 418 | 418 |
| 419 void willCreateThread() { | 419 void willCreateThread() { |
| 420 s_threadCreated = true; | 420 s_threadCreated = true; |
| 421 } | 421 } |
| 422 #endif | 422 #endif |
| 423 | 423 |
| 424 } // namespace WTF | 424 } // namespace WTF |
| 425 | 425 |
| 426 #endif // OS(WIN) | 426 #endif // OS(WIN) |
| OLD | NEW |