| 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 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 , m_xmlTypeRegExp(adoptPtr(new XMLMIMETypeRegExp)) | 66 , m_xmlTypeRegExp(adoptPtr(new XMLMIMETypeRegExp)) |
| 67 #ifndef NDEBUG | 67 #ifndef NDEBUG |
| 68 , m_isMainThread(isMainThread()) | 68 , m_isMainThread(isMainThread()) |
| 69 #endif | 69 #endif |
| 70 #if USE(ICU_UNICODE) | 70 #if USE(ICU_UNICODE) |
| 71 , m_cachedConverterICU(adoptPtr(new ICUConverterWrapper)) | 71 , m_cachedConverterICU(adoptPtr(new ICUConverterWrapper)) |
| 72 #endif | 72 #endif |
| 73 #if PLATFORM(MAC) | 73 #if PLATFORM(MAC) |
| 74 , m_cachedConverterTEC(adoptPtr(new TECConverterWrapper)) | 74 , m_cachedConverterTEC(adoptPtr(new TECConverterWrapper)) |
| 75 #endif | 75 #endif |
| 76 #if ENABLE(INSPECTOR) | |
| 77 , m_inspectorCounters(adoptPtr(new ThreadLocalInspectorCounters())) | 76 , m_inspectorCounters(adoptPtr(new ThreadLocalInspectorCounters())) |
| 78 #endif | |
| 79 { | 77 { |
| 80 // This constructor will have been called on the main thread before being ca
lled on | 78 // This constructor will have been called on the main thread before being ca
lled on |
| 81 // any other thread, and is only called once per thread - this makes this a
convenient | 79 // any other thread, and is only called once per thread - this makes this a
convenient |
| 82 // point to call methods that internally perform a one-time initialization t
hat is not | 80 // point to call methods that internally perform a one-time initialization t
hat is not |
| 83 // threadsafe. | 81 // threadsafe. |
| 84 wtfThreadData(); | 82 wtfThreadData(); |
| 85 StringImpl::empty(); | 83 StringImpl::empty(); |
| 86 } | 84 } |
| 87 | 85 |
| 88 ThreadGlobalData::~ThreadGlobalData() | 86 ThreadGlobalData::~ThreadGlobalData() |
| 89 { | 87 { |
| 90 } | 88 } |
| 91 | 89 |
| 92 void ThreadGlobalData::destroy() | 90 void ThreadGlobalData::destroy() |
| 93 { | 91 { |
| 94 #if PLATFORM(MAC) | 92 #if PLATFORM(MAC) |
| 95 m_cachedConverterTEC.clear(); | 93 m_cachedConverterTEC.clear(); |
| 96 #endif | 94 #endif |
| 97 | 95 |
| 98 #if USE(ICU_UNICODE) | 96 #if USE(ICU_UNICODE) |
| 99 m_cachedConverterICU.clear(); | 97 m_cachedConverterICU.clear(); |
| 100 #endif | 98 #endif |
| 101 | 99 |
| 102 #if ENABLE(INSPECTOR) | |
| 103 m_inspectorCounters.clear(); | 100 m_inspectorCounters.clear(); |
| 104 #endif | |
| 105 | 101 |
| 106 m_eventNames.clear(); | 102 m_eventNames.clear(); |
| 107 m_threadTimers.clear(); | 103 m_threadTimers.clear(); |
| 108 m_xmlTypeRegExp.clear(); | 104 m_xmlTypeRegExp.clear(); |
| 109 } | 105 } |
| 110 | 106 |
| 111 } // namespace WebCore | 107 } // namespace WebCore |
| OLD | NEW |