diff --git a/dom/src/threads/nsDOMWorker.h b/dom/src/threads/nsDOMWorker.h index 17e9f64e9a3a..3df05f7843b3 100644 --- a/dom/src/threads/nsDOMWorker.h +++ b/dom/src/threads/nsDOMWorker.h @@ -167,7 +167,9 @@ public: void Suspend(); void Resume(); + // This just calls IsCanceledNoLock with an autolock around the call. PRBool IsCanceled(); + PRBool IsClosing(); PRBool IsSuspended(); @@ -292,6 +294,8 @@ private: PRBool QueueSuspendedRunnable(nsIRunnable* aRunnable); + // Determines if the worker should be considered "canceled". See the large + // comment in the implementation for more details. PRBool IsCanceledNoLock(); private: