summaryrefslogtreecommitdiff
path: root/xpcom/threads/nsThreadPool.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/threads/nsThreadPool.h')
-rw-r--r--xpcom/threads/nsThreadPool.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/xpcom/threads/nsThreadPool.h b/xpcom/threads/nsThreadPool.h
index 729b47697..8a868ba2e 100644
--- a/xpcom/threads/nsThreadPool.h
+++ b/xpcom/threads/nsThreadPool.h
@@ -1,5 +1,5 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim:set ts=2 sw=2 sts=2 et cindent: */
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@@ -16,11 +16,12 @@
#include "nsThreadUtils.h"
#include "mozilla/Attributes.h"
-class nsThreadPool MOZ_FINAL : public nsIThreadPool,
- public nsIRunnable
+class nsThreadPool final
+ : public nsIThreadPool
+ , public nsIRunnable
{
public:
- NS_DECL_ISUPPORTS
+ NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIEVENTTARGET
NS_DECL_NSITHREADPOOL
NS_DECL_NSIRUNNABLE
@@ -30,8 +31,8 @@ public:
private:
~nsThreadPool();
- void ShutdownThread(nsIThread *thread);
- nsresult PutEvent(nsIRunnable *event);
+ void ShutdownThread(nsIThread* aThread);
+ nsresult PutEvent(nsIRunnable* aEvent);
nsCOMArray<nsIThread> mThreads;
nsEventQueue mEvents;
@@ -39,6 +40,7 @@ private:
uint32_t mIdleThreadLimit;
uint32_t mIdleThreadTimeout;
uint32_t mIdleCount;
+ uint32_t mStackSize;
nsCOMPtr<nsIThreadPoolListener> mListener;
bool mShutdown;
nsCString mName;