Beispiel #1
0
 public CallbackData(
     SharedCallbackData shared,
     IResponseCompletionSource ctx,
     Message msg)
 {
     this.shared    = shared;
     this.context   = ctx;
     this.Message   = msg;
     this.stopwatch = CoarseStopwatch.StartNew();
 }
Beispiel #2
0
 public TimestampedValue(LRU <TKey, TValue> l, TValue v)
 {
     Generation = Interlocked.Increment(ref l.nextGeneration);
     Value      = v;
     Age        = CoarseStopwatch.StartNew();
 }
Beispiel #3
0
 public TimestampedValue(LRU <TKey, TValue> l, TValue v, long generation)
 {
     Generation = generation;
     Value      = v;
     Age        = CoarseStopwatch.StartNew();
 }