Back to index
|Creates and holds a native event queue for the current thread. |
|Creates and hold a monitored event queue for the current thread. |
|Somewhat misnamed, this method releases the service's hold on the event queue(s) for this thread. |
|nsIEventQueue||createFromIThread (in nsIThread aThread, in boolean aNative)|
|nsIEventQueue||createFromPLEventQueue (in PLEventQueuePtr aPLEventQueue)|
|void||popThreadEventQueue (in nsIEventQueue aQueue)|
|nsIEventQueue||getThreadEventQueue (in PRThreadPtr aThread)|
|nsIEventQueue||resolveEventQueue (in nsIEventQueue queueOrConstant)|
|nsIEventQueue||getSpecialEventQueue (in long aQueue)|
|Returns the appropriate special event queue, AddRef()ed. |
|const long||CURRENT_THREAD_EVENT_QUEUE = 0|
|const long||UI_THREAD_EVENT_QUEUE = 1|
Creates and hold a monitored event queue for the current thread.
"Monitored" queues have no callback processing mechanism.
Creates and holds a native event queue for the current thread.
"Native" queues have an associated callback mechanism which is automatically triggered when an event is posted. See plevent.c for details.
Somewhat misnamed, this method releases the service's hold on the event queue(s) for this thread.
Subsequent attempts to access this thread's queue (GetThreadEventQueue, for example) may fail, though the queue itself will be destroyed only after all references to it are released and the queue itself is no longer actively processing events.
Returns the appropriate special event queue, AddRef()ed.
Really just a scriptable version of ResolveEventQueue.
Check for any "magic" event queue constants (NS_CURRENT_EVENTQ, NS_UI_THREAD_EVENTQ) and return the real event queue that they represent, AddRef()ed. Otherwise, return the event queue passed in, AddRef()ed. This is not scriptable because the arguments in question may be magic constants rather than real nsIEventQueues.