OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 20 matching lines...) Expand all Loading... |
31 WTF_EXPORT_PRIVATE static void cancelMessageSuppression(const char*); | 31 WTF_EXPORT_PRIVATE static void cancelMessageSuppression(const char*); |
32 | 32 |
33 WTF_EXPORT_PRIVATE explicit RefCountedLeakCounter(const char* descriptio
n); | 33 WTF_EXPORT_PRIVATE explicit RefCountedLeakCounter(const char* descriptio
n); |
34 WTF_EXPORT_PRIVATE ~RefCountedLeakCounter(); | 34 WTF_EXPORT_PRIVATE ~RefCountedLeakCounter(); |
35 | 35 |
36 WTF_EXPORT_PRIVATE void increment(); | 36 WTF_EXPORT_PRIVATE void increment(); |
37 WTF_EXPORT_PRIVATE void decrement(); | 37 WTF_EXPORT_PRIVATE void decrement(); |
38 | 38 |
39 #ifndef NDEBUG | 39 #ifndef NDEBUG |
40 private: | 40 private: |
41 #if COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) || OS(WINCE) | 41 #if COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) |
42 int m_count; | 42 int m_count; |
43 #else | 43 #else |
44 volatile int m_count; | 44 volatile int m_count; |
45 #endif | 45 #endif |
46 const char* m_description; | 46 const char* m_description; |
47 #endif | 47 #endif |
48 }; | 48 }; |
49 | 49 |
50 } // namespace WTF | 50 } // namespace WTF |
51 | 51 |
52 #endif | 52 #endif |
OLD | NEW |