internal bool SetFlushPending() { lock (this) { if (flushPending) return false; else { flushPending = true; return true; } } }