Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / xpcom / threads / nsIRunnable.idl
blobbfe9669a9f0e7cb5ac4e99e4bf5495ac0d54b784
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
8 /**
9 * Represents a task which can be dispatched to a thread for execution.
12 [scriptable, function, uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40)]
13 interface nsIRunnable : nsISupports
15 /**
16 * The function implementing the task to be run.
18 void run();
21 [scriptable, uuid(e75aa42a-80a9-11e6-afb5-e89d87348e2c)]
22 interface nsIRunnablePriority : nsISupports
24 const unsigned long PRIORITY_IDLE = 0;
25 const unsigned long PRIORITY_DEFERRED_TIMERS = 1;
26 const unsigned long PRIORITY_LOW = 2;
27 // INPUT_LOW isn't supposed to be used directly.
28 // const unsigned long PRIORITY_INPUT_LOW = 3;
29 const unsigned long PRIORITY_NORMAL = 4;
30 const unsigned long PRIORITY_MEDIUMHIGH = 5;
31 const unsigned long PRIORITY_INPUT_HIGH = 6;
32 const unsigned long PRIORITY_VSYNC = 7;
33 // INPUT_HIGHEST is InputTaskManager's internal priority
34 //const unsigned long PRIORITY_INPUT_HIGHEST = 8;
35 const unsigned long PRIORITY_RENDER_BLOCKING = 9;
36 const unsigned long PRIORITY_CONTROL = 10;
38 readonly attribute unsigned long priority;
41 [uuid(3114c36c-a482-4c6e-9523-1dcfc6f605b9)]
42 interface nsIRunnableIPCMessageType : nsISupports
44 readonly attribute unsigned long type;