public void SetState(Seed seed, SearchState state) { lock (_thisLock) { _seedsDictionary.AddOrUpdate(seed, state, (_, orignalState) => orignalState | state); } }