private void Resume() { lock (fieldsLock) { paused = false; // release the lock Monitor.Exit(pauseLock); } }