(self)
| 15 | return self.createGParam(MyParam(), "param1") |
| 16 | |
| 17 | def run(self): |
| 18 | param: MyParam = self.getGParam("param1") |
| 19 | with param: |
| 20 | # user `with param` to enter thread safe area for param's info change |
| 21 | # as same as param.lock() and param.unlock() |
| 22 | param.count += 1 |
| 23 | param.value += 1 |
| 24 | print('[{0}] value is {1}, count is {2}'.format(self.getName(), param.value, param.count)) |
| 25 | return CStatus() |
nothing calls this directly
no outgoing calls
no test coverage detected