RemoveProcessor will remove a processor from driver.
(ID int)
| 205 | |
| 206 | // RemoveProcessor will remove a processor from driver. |
| 207 | func (d *Driver) RemoveProcessor(ID int) bool { |
| 208 | d.Lock() |
| 209 | defer d.Unlock() |
| 210 | |
| 211 | return d.removeProcessor(ID) |
| 212 | } |
| 213 | |
| 214 | func (d *Driver) removeProcessor(ID int) bool { |
| 215 | // if no processors running, nothing to remove |
no test coverage detected