(self)
| 328 | |
| 329 | class WriterThread(threading.Thread): |
| 330 | def run(self): |
| 331 | with CreateKey(HKEY_CURRENT_USER, test_key_name) as key: |
| 332 | values_iter = itertools.cycle(values) |
| 333 | while not done: |
| 334 | val = next(values_iter) |
| 335 | SetValueEx(key, 'test_value', 0, REG_BINARY, val) |
| 336 | ready.set() |
| 337 | |
| 338 | thread = WriterThread() |
| 339 | thread.start() |