boolean checkAndClearForceFlush() {
    if (isStopFlusher()) {
      return true;
    }
    boolean done = false;
    boolean result;
    do {
      int v = getForceFlushCount().get();
      result = v > 0;
      if (result) {
        done = getForceFlushCount().compareAndSet(v, 0);
      }
    } while (result && !done);
    return result;
  }
Return true if a non-zero value is found and the decrement was done.
geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreImpl.java