nsIThreadInternal
From MDC
This article covers features introduced in Firefox 3
The nsIThreadInternal interface is implemented by the XPCOM thread object to let consumers observe dispatch activity on a thread.
Inherits from: nsIThread
Contents |
nsIThreadInternal is defined in xpcom/threads/nsIThreadInternal.idl. It is scriptable and
unfrozen (hasn't changed since Mozilla 1.9).
[edit] Method overview
void pushEventQueue(in nsIThreadEventFilter filter);
|
void popEventQueue();
|
[edit] Attributes
| Attribute | Type | Description |
observer
| nsIThreadObserver
| Gets and sets the current thread observer; set to null to disable observing. This attribute may be read from any thread but must only be set on the thread corresponding to this thread object.
|
[edit] Methods
[edit] pushEventQueue()
Causes any events currently enqueued on the thread to be surpressed until popEventQueue() is called. In addition, any new events dispatched to the thread are only processed if they are accepted by the specified filter.
If the filter is null, all new events are accepted.
Calls to pushEventQueue() may be nested, and must each be paired with a corresponding call to popEventQueue() to restore the original state of the thread.
void pushEventQueue( in nsIThreadEventFilter filter )
[edit] Parameters
- filter
- The
nsIThreadEventFilterto apply to dispatched events, ornullto accept all dispatched events.
[edit] popEventQueue()
Reverts a call to pushEventQueue(). When an event queue is popped, any events remaining in the queue are appended to the elder queue.
void popEventQueue()
[edit] Parameters
None.