public void send(SendPacket packet){
synchronized (mQueue) {
    mQueue.offer(packet);
  }
  if (mSending.compareAndSet(false,true)) {
    sendNext();
  }
}

public void send ( SendPacket packet ) { synchronized ( mQueue ) { mQueue . offer ( packet ) ; } if ( mSending . compareAndSet ( false , true ) ) { sendNext ( ) ; } }
add a packet to queue to send
