Chromium Code Reviews| Index: Source/core/workers/WorkerThread.h |
| diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h |
| index 80a2bf549d83d441c9a8c73508a7b5a837fc746b..fd807262912612c4b40ad969e031430be45eaf2a 100644 |
| --- a/Source/core/workers/WorkerThread.h |
| +++ b/Source/core/workers/WorkerThread.h |
| @@ -94,6 +94,11 @@ namespace blink { |
| void interruptAndDispatchInspectorCommands(); |
| void setWorkerInspectorController(WorkerInspectorController*); |
| + unsigned decrementAndReturnTaskCount(); |
|
jochen (gone - plz use gerrit)
2014/09/02 10:14:14
those should all be private
Mayur Kankanwadi
2014/09/03 11:26:22
These functions are accessed from within the Worke
|
| + unsigned taskCount(); |
| + void queueUpIdleHandlerNow(); |
| + void decrementTaskCount(); |
| + bool isIdleHandlerTaskFiredOnce(); |
| protected: |
| WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); |
| @@ -131,6 +136,10 @@ namespace blink { |
| // Used to signal thread shutdown. |
| OwnPtr<blink::WebWaitableEvent> m_shutdownEvent; |
| + Mutex m_taskCounterMutex; |
| + unsigned m_tasksCount; |
| + bool m_isIdleHandlerTaskFiredOnce; |
| + bool m_isIdleHandlerTask; |
| // FIXME: This has to be last because of crbug.com/401397 - the |
| // WorkerThread might get deleted before it had a chance to properly |