A
This commit is contained in:
@ -37,7 +37,6 @@ var (
|
|||||||
goroutineProfilingFile, threadcreateProfilingFile *os.File
|
goroutineProfilingFile, threadcreateProfilingFile *os.File
|
||||||
isProfiling bool
|
isProfiling bool
|
||||||
profilingLock = &sync.Mutex{}
|
profilingLock = &sync.Mutex{}
|
||||||
startStopLock = &sync.Mutex{}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type LogCallback interface {
|
type LogCallback interface {
|
||||||
@ -478,8 +477,6 @@ func StartWithLog(serviceID, serviceArgsStr string, loggerCallback LogCallback)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Stop(serviceID string) {
|
func Stop(serviceID string) {
|
||||||
startStopLock.Lock()
|
|
||||||
defer startStopLock.Unlock()
|
|
||||||
services.Stop(serviceID)
|
services.Stop(serviceID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user