You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_options.LogWarning("Cannot start a sampling profiler, the session hasn't started yet.");
58
-
_inProgress=FALSE;
55
+
_inProgress=false;
59
56
returnnull;
60
57
}
61
58
62
59
if(!_sessionTask.IsCompletedSuccessfully)
63
60
{
64
61
_options.LogWarning("Cannot start a sampling profiler because the session startup has failed. This is a permanent error and no future transactions will be sampled.");
65
62
_errorLogged=true;
66
-
_inProgress=FALSE;
63
+
_inProgress=false;
67
64
returnnull;
68
65
}
69
66
@@ -72,13 +69,13 @@ public SamplingTransactionProfilerFactory(SentryOptions options, TimeSpan startu
/// Gets the number of remaining <see cref="CounterScope"/> required to exit in order to set/signal the event while a <see cref="LockScope"/> is active.
32
35
/// When <see langword="0"/> and while a <see cref="LockScope"/> is active, no more <see cref="CounterScope"/> can be entered.
/// Returns <see langword="true"/> when a <see cref="LockScope"/> is active and the event can be set/signaled by <see cref="Count"/> reaching <see langword="0"/>.
38
41
/// Returns <see langword="false"/> when the <see cref="Count"/> can only reach the initial count of <see langword="1"/> when no <see cref="CounterScope"/> is active any longer.
39
42
/// </summary>
40
-
internalboolIsEngaged=>_isEngaged==1;
43
+
internalboolIsEngaged=>_isEngaged;
41
44
42
45
/// <summary>
43
46
/// No <see cref="CounterScope"/> will be entered when the <see cref="Count"/> has reached <see langword="0"/>, or while the lock is engaged via an active <see cref="LockScope"/>.
_=_event.Signal();// decrement the initial count of 1, so that the event can be set with the count reaching 0 when all entered 'CounterScope' instances have exited
@@ -94,7 +97,7 @@ private void ExitLockScope()
94
97
Debug.Assert(_event.IsSet);
95
98
_event.Reset();// reset the signaled event to the initial count of 1, so that new 'CounterScope' instances can be entered again
0 commit comments