summaryrefslogtreecommitdiffstats
path: root/xpcom/ds/nsIAtom.idl
diff options
context:
space:
mode:
authorMoonchild <git-repo@palemoon.org>2019-05-25 12:32:37 +0000
committerGitHub <noreply@github.com>2019-05-25 12:32:37 +0000
commit915ffc660053cc48153c00dec66b913517dba794 (patch)
tree3342c893aaa82e08e6b019c567f233e48632104f /xpcom/ds/nsIAtom.idl
parent72260727093c92eaca78a3ea4d32bfafa49af8c3 (diff)
parentc0c64138caf25dfd8d8b87e51f36a35311fab823 (diff)
downloadUXP-915ffc660053cc48153c00dec66b913517dba794.tar
UXP-915ffc660053cc48153c00dec66b913517dba794.tar.gz
UXP-915ffc660053cc48153c00dec66b913517dba794.tar.lz
UXP-915ffc660053cc48153c00dec66b913517dba794.tar.xz
UXP-915ffc660053cc48153c00dec66b913517dba794.zip
Merge pull request #1115 from win7-7/NS_Atomize-cache
Add NS_Atomize cache for main thread use
Diffstat (limited to 'xpcom/ds/nsIAtom.idl')
-rw-r--r--xpcom/ds/nsIAtom.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/xpcom/ds/nsIAtom.idl b/xpcom/ds/nsIAtom.idl
index c02540838..6e8602c42 100644
--- a/xpcom/ds/nsIAtom.idl
+++ b/xpcom/ds/nsIAtom.idl
@@ -120,6 +120,11 @@ extern already_AddRefed<nsIAtom> NS_Atomize(const char16_t* aUTF16String);
extern already_AddRefed<nsIAtom> NS_Atomize(const nsAString& aUTF16String);
/**
+ * An optimized version of the method above for the main thread.
+ */
+extern already_AddRefed<nsIAtom> NS_AtomizeMainThread(const nsAString& aUTF16String);
+
+/**
* Return a count of the total number of atoms currently
* alive in the system.
*/