Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIThreadInternal

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

The nsIThreadInternal interface is implemented by the XPCOM thread object to let consumers observe dispatch activity on a thread.

Please add a summary to this article.
  Last changed in Gecko 1.9 (Firefox 3)

Inherits from: nsIThread

Method overview

void popEventQueue();
void pushEventQueue(in nsIThreadEventFilter filter);

Attributes

Attribute Type Description
observer nsIThreadObserver Get/set 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. The observer will be released on the thread corresponding to this thread object after all other events have been processed during a call to Shutdown.

Methods

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();
Parameters

None.

pushEventQueue()

Causes any events currently enqueued on the thread to be suppressed 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
);
Parameters
filter
The nsIThreadEventFilter to apply to dispatched events, or null to accept all dispatched events.

See also

문서 태그 및 공헌자

 이 페이지의 공헌자: Sheppy, trevorh, Kohei
 최종 변경: Sheppy,