예제 #1
0
 internal virtual void ReleaseLogBuffers(LogBuffers logBuffers, long registrationId)
 {
     if (logBuffers.DecRef() == 0)
     {
         logBuffers.TimeOfLastStateChange(_nanoClock.NanoTime());
         _logBuffersByIdMap.Remove(registrationId);
         _lingeringResources.Add(logBuffers);
     }
 }
예제 #2
0
 internal void ReleaseLogBuffers(LogBuffers logBuffers, long registrationId)
 {
     if (logBuffers.DecRef() == 0)
     {
         logBuffers.LingerDeadlineNs(_nanoClock.NanoTime() + _ctx.ResourceLingerDurationNs());
         _logBuffersByIdMap.Remove(registrationId);
         _lingeringLogBuffers.Add(logBuffers);
     }
 }