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

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

Issue 2524653002: Replace ASSERT with DCHECK in wtf/Threading* (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/wtf/ThreadingPthreads.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, 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 typedef uint32_t ThreadIdentifier; 58 typedef uint32_t ThreadIdentifier;
59 #else 59 #else
60 typedef intptr_t ThreadIdentifier; 60 typedef intptr_t ThreadIdentifier;
61 #endif 61 #endif
62 62
63 WTF_EXPORT ThreadIdentifier currentThread(); 63 WTF_EXPORT ThreadIdentifier currentThread();
64 64
65 WTF_EXPORT void lockAtomicallyInitializedStaticMutex(); 65 WTF_EXPORT void lockAtomicallyInitializedStaticMutex();
66 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex(); 66 WTF_EXPORT void unlockAtomicallyInitializedStaticMutex();
67 67
68 #if ENABLE(ASSERT) 68 #if DCHECK_IS_ON()
69 WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld(); 69 WTF_EXPORT bool isAtomicallyInitializedStaticMutexLockHeld();
70 WTF_EXPORT bool isBeforeThreadCreated(); 70 WTF_EXPORT bool isBeforeThreadCreated();
71 WTF_EXPORT void willCreateThread(); 71 WTF_EXPORT void willCreateThread();
72 #endif 72 #endif
73 73
74 } // namespace WTF 74 } // namespace WTF
75 75
76 using WTF::ThreadIdentifier; 76 using WTF::ThreadIdentifier;
77 using WTF::currentThread; 77 using WTF::currentThread;
78 78
79 #endif // Threading_h 79 #endif // Threading_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ThreadingPthreads.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698