internal GetEvent(FilterStore <T> filterStore, Predicate <T> filter, double getPriority) : base(filterStore.Env, getPriority) { _filterStore = filterStore; _filter = filter; if (!TrySchedule()) { _filterStore._getQueue.Add(this, getPriority); } }
internal PutEvent(FilterStore <T> filterStore, T item, double putPriority, double itemPriority) : base(filterStore.Env, putPriority) { _filterStore = filterStore; _item = item; _itemPriority = itemPriority; if (!TrySchedule()) { _filterStore._putQueue.Add(this, putPriority); } }