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

Side by Side Diff: third_party/WebKit/Source/wtf/Threading.h

Issue 2652723002: Ensure DEFINE_STATIC_LOCAL can be used before wtf threading is initialized (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/Source/wtf/StdLibExtras.h ('k') | no next file » | 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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 namespace WTF { 57 namespace WTF {
58 58
59 #if OS(WIN) 59 #if OS(WIN)
60 typedef uint32_t ThreadIdentifier; 60 typedef uint32_t ThreadIdentifier;
61 #else 61 #else
62 typedef intptr_t ThreadIdentifier; 62 typedef intptr_t ThreadIdentifier;
63 #endif 63 #endif
64 64
65 namespace internal { 65 namespace internal {
66 ThreadIdentifier currentThreadSyscall(); 66 WTF_EXPORT ThreadIdentifier currentThreadSyscall();
67 } // namespace internal 67 } // namespace internal
68 68
69 WTF_EXPORT ThreadIdentifier currentThread(); 69 WTF_EXPORT ThreadIdentifier currentThread();
70 70
71 WTF_EXPORT void lockAtomicallyInitializedStaticMutex(); 71 WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
72 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex(); 72 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
73 73
74 #if DCHECK_IS_ON() 74 #if DCHECK_IS_ON()
75 WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld(); 75 WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld();
76 WTF_EXPORT bool isBeforeThreadCreated(); 76 WTF_EXPORT bool isBeforeThreadCreated();
77 WTF_EXPORT void willCreateThread(); 77 WTF_EXPORT void willCreateThread();
78 #endif 78 #endif
79 79
80 } // namespace WTF 80 } // namespace WTF
81 81
82 using WTF::ThreadIdentifier; 82 using WTF::ThreadIdentifier;
83 using WTF::currentThread; 83 using WTF::currentThread;
84 84
85 #endif // Threading_h 85 #endif // Threading_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/StdLibExtras.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698