public void post(Object event){
  List<Object> eventQueue=currentThreadEventQueue.get();
  eventQueue.add(event);
  BooleanWrapper isPosting=currentThreadIsPosting.get();
  if (isPosting.value) {
    return;
  }
 else {
    boolean isMainThread=Looper.getMainLooper() == Looper.myLooper();
    isPosting.value=true;
    try {
      while (!eventQueue.isEmpty()) {
        postSingleEvent(eventQueue.remove(0),isMainThread);
      }
    }
  finally {
      isPosting.value=false;
    }
  }
}

public void post ( Object event ) { List < Object > eventQueue = currentThreadEventQueue . get ( ) ; eventQueue . add ( event ) ; BooleanWrapper isPosting = currentThreadIsPosting . get ( ) ; if ( isPosting . value ) { return ; } else { boolean isMainThread = Looper . getMainLooper ( ) == Looper . myLooper ( ) ; isPosting . value = true ; try { while ( ! eventQueue . isEmpty ( ) ) { postSingleEvent ( eventQueue . remove ( 0 ) , isMainThread ) ; } } finally { isPosting . value = false ; } } }
posts the given event to the event bus .
