Exemplo n.º 1
0
 public HistoryLock(MyProfiler profiler, FastResourceLock historyLock)
 {
     m_profiler = profiler;
     m_lock = historyLock;
     m_lock.AcquireExclusive();
     m_profiler.OnHistorySafe();
 }
Exemplo n.º 2
0
 public HistoryLock(MyProfiler profiler, FastResourceLock historyLock)
 {
     m_profiler = profiler;
     m_lock     = historyLock;
     m_lock.AcquireExclusive();
     m_profiler.OnHistorySafe();
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     m_profiler.OnHistorySafe();
     m_lock.ReleaseExclusive();
     m_lock = null;
 }