Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
e342e1f8
Commit
e342e1f8
authored
9 years ago
by
B2G User
Browse files
Options
Downloads
Patches
Plain Diff
Patch deletion due to upstream fix
Change-Id: Ib169ad0a2f8236fc989631325d6ef09a6d40fb62
parent
2b72975e
No related branches found
Branches containing commit
Tags
LF.BR.1.2.3-15400-8x09.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch/all/gecko/bug-1138620-Expose-SetIgnoreThreadStatus-API.patch
+0
-66
0 additions, 66 deletions
.../gecko/bug-1138620-Expose-SetIgnoreThreadStatus-API.patch
with
0 additions
and
66 deletions
patch/all/gecko/bug-1138620-Expose-SetIgnoreThreadStatus-API.patch
deleted
100644 → 0
+
0
−
66
View file @
2b72975e
From 5550965517b15bb0a786badb857137412f49c7ae Mon Sep 17 00:00:00 2001
From: Philippe Gravel <pgravel@codeaurora.org>
Date: Mon, 2 Mar 2015 12:16:50 -0800
Subject: [PATCH] Expose SetIgnoreThreadStatus API in nsThreadStatusManager
Change-Id: I8412d735f60d9b479f5d9548391cd3fed1cd832c
---
xpcom/threads/nsIThreadManager.idl | 2 ++
xpcom/threads/nsThreadManager.cpp | 9 +++++++--
xpcom/threads/nsThreadManager.h | 2 --
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/xpcom/threads/nsIThreadManager.idl b/xpcom/threads/nsIThreadManager.idl
index 9b4fc12..6df2742 100644
--- a/xpcom/threads/nsIThreadManager.idl
+++ b/xpcom/threads/nsIThreadManager.idl
@@ -48,6 +48,8 @@
interface nsIThreadManager : nsISupports
*/
[noscript] nsIThread getThreadFromPRThread(in PRThread prthread);
+ void setIgnoreThreadStatus();
+
/**
* Get the main thread.
*/
diff --git a/xpcom/threads/nsThreadManager.cpp b/xpcom/threads/nsThreadManager.cpp
index 8de08cf..d0abe0d 100644
--- a/xpcom/threads/nsThreadManager.cpp
+++ b/xpcom/threads/nsThreadManager.cpp
@@ -439,13 +439,18 @@
nsThreadManager::GetHighestNumberOfThreads()
return mHighestNumberOfThreads;
}
-#ifdef MOZ_NUWA_PROCESS
-void
+NS_IMETHODIMP
nsThreadManager::SetIgnoreThreadStatus()
{
+#ifdef MOZ_NUWA_PROCESS
GetCurrentThreadStatusInfo()->mIgnored = true;
+ return NS_OK;
+#endif
+ return NS_ERROR_NOT_AVAILABLE;
}
+#ifdef MOZ_NUWA_PROCESS
+
void
nsThreadManager::SetThreadIdle(nsIRunnable **aReturnRunnable)
{
diff --git a/xpcom/threads/nsThreadManager.h b/xpcom/threads/nsThreadManager.h
index 74e1bbc..712db3d 100644
--- a/xpcom/threads/nsThreadManager.h
+++ b/xpcom/threads/nsThreadManager.h
@@ -72,8 +72,6 @@
public:
}
#ifdef MOZ_NUWA_PROCESS
- void SetIgnoreThreadStatus();
-
// |SetThreadWorking| and |SetThreadIdle| set status of thread that is
// currently running. They get thread status information from TLS and pass
// the information to |SetThreadIsWorking|.
--
1.8.2.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment