public void ParallelDependentActivityStarted(ActivityInfo parentActivity) { lock (fieldsLock) { ++parentActivity.ThreadCount; } // Associate the new thread to the parent activity CurrentThreadActivity = parentActivity; }
public ActivityThread(SessionTracker tracker, Amnesia.SessionTracker.ActivityInfo activity, DependentTransaction transaction) { this.tracker = tracker; this.transaction = transaction; tracker.ParallelDependentActivityStarted(activity); }