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 21 matching lines...) Expand all Loading... |
32 #include "core/inspector/InspectorInstrumentation.h" | 32 #include "core/inspector/InspectorInstrumentation.h" |
33 #include "core/platform/ThreadGlobalData.h" | 33 #include "core/platform/ThreadGlobalData.h" |
34 #include "core/workers/DedicatedWorkerGlobalScope.h" | 34 #include "core/workers/DedicatedWorkerGlobalScope.h" |
35 #include "core/workers/WorkerClients.h" | 35 #include "core/workers/WorkerClients.h" |
36 #include "core/workers/WorkerThreadStartupData.h" | 36 #include "core/workers/WorkerThreadStartupData.h" |
37 #include "modules/webdatabase/DatabaseManager.h" | 37 #include "modules/webdatabase/DatabaseManager.h" |
38 #include "modules/webdatabase/DatabaseTask.h" | 38 #include "modules/webdatabase/DatabaseTask.h" |
39 #include "platform/PlatformThreadData.h" | 39 #include "platform/PlatformThreadData.h" |
40 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
41 #include "public/platform/WebWorkerRunLoop.h" | 41 #include "public/platform/WebWorkerRunLoop.h" |
42 #include "weborigin/KURL.h" | 42 #include "platform/weborigin/KURL.h" |
43 #include "wtf/Noncopyable.h" | 43 #include "wtf/Noncopyable.h" |
44 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
45 | 45 |
46 #include <utility> | 46 #include <utility> |
47 | 47 |
48 namespace WebCore { | 48 namespace WebCore { |
49 | 49 |
50 static Mutex& threadSetMutex() | 50 static Mutex& threadSetMutex() |
51 { | 51 { |
52 AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex); | 52 AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void WorkerThread::releaseFastMallocFreeMemoryInAllThreads() | 230 void WorkerThread::releaseFastMallocFreeMemoryInAllThreads() |
231 { | 231 { |
232 MutexLocker lock(threadSetMutex()); | 232 MutexLocker lock(threadSetMutex()); |
233 HashSet<WorkerThread*>& threads = workerThreads(); | 233 HashSet<WorkerThread*>& threads = workerThreads(); |
234 HashSet<WorkerThread*>::iterator end = threads.end(); | 234 HashSet<WorkerThread*>::iterator end = threads.end(); |
235 for (HashSet<WorkerThread*>::iterator it = threads.begin(); it != end; ++it) | 235 for (HashSet<WorkerThread*>::iterator it = threads.begin(); it != end; ++it) |
236 (*it)->runLoop().postTask(adoptPtr(new ReleaseFastMallocFreeMemoryTask))
; | 236 (*it)->runLoop().postTask(adoptPtr(new ReleaseFastMallocFreeMemoryTask))
; |
237 } | 237 } |
238 | 238 |
239 } // namespace WebCore | 239 } // namespace WebCore |
OLD | NEW |