(self)
| 13 | |
| 14 | class MyReadParamNode(GNode): |
| 15 | def run(self): |
| 16 | param: MyParam = self.getGParamWithNoEmpty("param1") |
| 17 | |
| 18 | # use `with param:` as same as: |
| 19 | # param.lock() |
| 20 | # print('[{0}] value is {1}, count is {2}'.format(self.getName(), param.value, param.count)) |
| 21 | # param.unlock() |
| 22 | with param: |
| 23 | print('[{0}] value is {1}, count is {2}'.format(self.getName(), param.value, param.count)) |
| 24 | return CStatus() |
nothing calls this directly
no outgoing calls
no test coverage detected