private void addNotify(ArrayList notifies,Map groupsMap,boolean discard){
synchronized (pendingNotifies) {
    pendingNotifies.addLast(new NotifyTask(notifies,groupsMap,discard));
    if (notifierThread == null) {
      notifierThread=new Notifier();
      notifierThread.start();
    }
  }
}

private void addNotify ( ArrayList notifies , Map groupsMap , boolean discard ) { synchronized ( pendingNotifies ) { pendingNotifies . addLast ( new NotifyTask ( notifies , groupsMap , discard ) ) ; if ( notifierThread == null ) { notifierThread = new Notifier ( ) ; notifierThread . start ( ) ; } } }
add a notification task to the pending queue , and start an instance of the notifier thread if one isn ' t already running .
