File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
profiler/src/ProfilerEngine/Datadog.Profiler.Native Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ bool ServiceBase::Start()
5757
5858bool 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 {
Original file line number Diff line number Diff 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
2929protected:
3030 virtual bool StartImpl () = 0;
You can’t perform that action at this time.
0 commit comments