proc: document thread safety of Process interface.

This commit is contained in:
aarzilli
2017-06-06 19:12:09 +02:00
committed by Alessandro Arzilli
parent 16d8bd647f
commit 037aa01963
2 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,12 @@ This project adheres to Semantic Versioning.
All changes mention the author, unless contributed by me (@derekparker). All changes mention the author, unless contributed by me (@derekparker).
## [RELEASE TO BE DEFINED] DATE TO BE DEFINED
### Fixed
- Data races in tests (@aarzilli)
## [1.0.0-rc.2] DATE TO BE DEFINED ## [1.0.0-rc.2] DATE TO BE DEFINED
### Added ### Added

View File

@ -6,6 +6,11 @@ import (
// Process represents the target of the debugger. This // Process represents the target of the debugger. This
// target could be a system process, core file, etc. // target could be a system process, core file, etc.
//
// Implementations of Process are not required to be thread safe and users
// of Process should not assume they are.
// There is one exception to this rule: it is safe to call RequestManualStop
// concurrently with ContinueOnce.
type Process interface { type Process interface {
Info Info
ProcessManipulation ProcessManipulation