Package org.eclipse.osgi.framework.eventmgr.EventManager

Examples of org.eclipse.osgi.framework.eventmgr.EventManager.EventThread


   */
  public void dispatchEventAsynchronous(int eventAction, Object eventObject) {
    synchronized (this) {
      readOnly = true;
    }
    EventThread eventThread = manager.getEventThread();
    synchronized (eventThread) { /* synchronize on the EventThread to ensure no interleaving of posting to the event thread */
      for (Iterator iter = queue.entrySet().iterator(); iter.hasNext();) { /* iterate over the list of listener lists */
        Map.Entry entry = (Map.Entry) iter.next();
        eventThread.postEvent((Set) entry.getKey(), (EventDispatcher) entry.getValue(), eventAction, eventObject);
      }
    }
  }
View Full Code Here


   */
  public void dispatchEventAsynchronous(int eventAction, Object eventObject) {
    synchronized (this) {
      readOnly = true;
    }
    EventThread eventThread = manager.getEventThread();
    synchronized (eventThread) { /* synchronize on the EventThread to ensure no interleaving of posting to the event thread */
      int size = queue.size();
      for (int i = 0; i < size; i++) { /* iterate over the list of listener lists */
        ListElement list = (ListElement)queue.get(i);
        eventThread.postEvent((ListElement[]) list.primary, (EventDispatcher) list.companion, eventAction, eventObject);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.eventmgr.EventManager.EventThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.