Skip to content

Commit 916bbcd

Browse files
authored
fix: apply suggestions from review #88 (#90)
1 parent 4eec727 commit 916bbcd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

profiler/src/ProfilerEngine/Datadog.Profiler.Native/CorProfilerCallback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ void CorProfilerCallback::SetStackSamplerEnabled(bool enabled)
20752075
}
20762076
else
20772077
{
2078-
_pStackSamplerLoopManager->Stop2(ServiceBase::State::Init);
2078+
_pStackSamplerLoopManager->StopWithState(ServiceBase::State::Init);
20792079
}
20802080
}
20812081

profiler/src/ProfilerEngine/Datadog.Profiler.Native/ServiceBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ bool ServiceBase::Start()
5757

5858
bool ServiceBase::Stop()
5959
{
60-
return Stop2(State::Stopped);
60+
return StopWithState(State::Stopped);
6161
}
6262

63-
bool ServiceBase::Stop2(State stoppedState)
63+
bool ServiceBase::StopWithState(State stoppedState)
6464
{
6565
if (stoppedState != State::Stopped && stoppedState != State::Init)
6666
{

profiler/src/ProfilerEngine/Datadog.Profiler.Native/ServiceBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ServiceBase : public IService
2424
bool Stop() final override;
2525

2626
// Like Stop, but allows to specify stopped state - either Stopped or Init. Init allows the service to be restarted.
27-
bool Stop2(State stoppedState); // todo better name
27+
bool StopWithState(State stoppedState);
2828

2929
protected:
3030
virtual bool StartImpl() = 0;

0 commit comments

Comments
 (0)