XPCOM:nsIThreadManager: Difference between revisions

Jump to navigation Jump to search
m
Line 137: Line 137:
  interface nsIThreadObserver : nsISupports {
  interface nsIThreadObserver : nsISupports {
   /**
   /**
     * Called when an event is dispatched to the thread. This method
     * This method is called after an event has been dispatched to the thread.
     * may be called on any thread.
     * This method may be called from any thread.
     */
     */
   void onDispatchEvent(in nsIThreadInternal thread,
   void onDispatchedEvent(in nsIThreadInternal thread);
                        in unsigned long flags);
    
    
   /**
   /**
     * Called at the beginning of nsIThread::processNextEvent.
     * 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 onEnterProcessNextEvent(in nsIThreadInternal thread);
   void onProcessNextEvent(in nsIThreadInternal thread,
   
                          in boolean mayWait);
  /**
    * Called at the end of nsIThread::processNextEvent.
    */
  void onLeaveProcessNextEvent(in nsIThreadInternal thread);
  };
  };
=== nsIThreadPool ===
=== nsIThreadPool ===
  [scriptable, uuid(...)]
  [scriptable, uuid(...)]
272

edits

Navigation menu