protected void waitFlush(){
  if (doneLock == null)   return;
  try {
    if (NSLogger.debugLogger)     Log.v("NSLogger",String.format("waiting for flush of message %d",sequenceNumber));
    doneCondition.await();
  }
 catch (  InterruptedException e) {
  }
 finally {
    doneLock.unlock();
  }
}

protected void waitFlush ( ) { if ( doneLock == null ) return ; try { if ( NSLogger . debugLogger ) Log . v ( "NSLogger" , String . format ( "waiting for flush of message %d" , sequenceNumber ) ) ; doneCondition . await ( ) ; } catch ( InterruptedException e ) { } finally { doneLock . unlock ( ) ; } }
internally used by the client thread to wait for the logging thread to have successfully sent the message . thread is blocked in the meantime .
