[Continue with all other methods, replacing bc with sc throughout...]
()
| 244 | // [Continue with all other methods, replacing bc with sc throughout...] |
| 245 | |
| 246 | func (sc *ShellController) LockRunLock() bool { |
| 247 | rtn := sc.RunLock.CompareAndSwap(false, true) |
| 248 | if rtn { |
| 249 | log.Printf("block %q run() lock\n", sc.BlockId) |
| 250 | } |
| 251 | return rtn |
| 252 | } |
| 253 | |
| 254 | func (sc *ShellController) UnlockRunLock() { |
| 255 | sc.RunLock.Store(false) |