272
edits
| Line 137: | Line 137: | ||
|   interface nsIThreadObserver : nsISupports { |   interface nsIThreadObserver : nsISupports { | ||
|     /** |     /** | ||
|      *  |      * This method is called after an event has been dispatched to the thread. | ||
|      * may be called  |      * This method may be called from any thread. | ||
|      */ |      */ | ||
|     void  |     void onDispatchedEvent(in nsIThreadInternal thread); | ||
|       |       | ||
|     /** |     /** | ||
|      *  |      * This method is called (from nsIThread::ProcessNextEvent) before an event | ||
|     * is processed.  This method is only called on the target thread. | |||
|     * | |||
|     * @param thread | |||
|     *        The thread being asked to process another event. | |||
|     * @param mayWait | |||
|     *        Indicates whether or not the method is allowed to block the calling | |||
|     *        thread.  For example, this parameter is false during thread shutdown. | |||
|      */ |      */ | ||
|     void  |     void onProcessNextEvent(in nsIThreadInternal thread, | ||
|                            in boolean mayWait); | |||
|   }; |   }; | ||
| === nsIThreadPool === | === nsIThreadPool === | ||
|   [scriptable, uuid(...)] |   [scriptable, uuid(...)] | ||
edits