mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-08 17:39:19 +00:00
Remove the restriction against getting a SharedThreadPool off-main-thread
This commit is contained in:
@@ -61,7 +61,6 @@ SharedThreadPool::SpinUntilEmpty()
|
||||
TemporaryRef<SharedThreadPool>
|
||||
SharedThreadPool::Get(const nsCString& aName, uint32_t aThreadLimit)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(sMonitor && sPools);
|
||||
ReentrantMonitorAutoEnter mon(*sMonitor);
|
||||
SharedThreadPool* pool = nullptr;
|
||||
@@ -178,8 +177,6 @@ SharedThreadPool::EnsureThreadLimitIsAtLeast(uint32_t aLimit)
|
||||
static already_AddRefed<nsIThreadPool>
|
||||
CreateThreadPool(const nsCString& aName)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIThreadPool> pool = do_CreateInstance(NS_THREADPOOL_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user