/** Try to acquire sync before a reader operation; record failure * */ protected boolean beforeRead() { try { rd_.acquire(); return false; } catch (InterruptedException ex) { syncFailures_.increment(); return true; } }
/** Return the number of synchronization failures for read-only operations */ public long syncFailures() { return syncFailures_.get(); }