(self)
| 85 | self._value, self._timestamp = self._file.read_value(self._key) |
| 86 | |
| 87 | def __check_for_pid_change(self): |
| 88 | actual_pid = process_identifier() |
| 89 | if pid['value'] != actual_pid: |
| 90 | pid['value'] = actual_pid |
| 91 | # There has been a fork(), reset all the values. |
| 92 | for f in files.values(): |
| 93 | f.close() |
| 94 | files.clear() |
| 95 | for value in values: |
| 96 | value.__reset() |
| 97 | |
| 98 | def inc(self, amount): |
| 99 | with lock: |