1
0
mirror of https://gerrit.ovirt.org/vdsm synced 2026-02-05 12:46:23 +01:00
Files
Filip Januska 5075c8b8c0 concurrent: Add Timer class
This patch adds a Timer class to the concurrent module.
The class is based on and behaves pretty much the same
as the threading.Timer class, except that the thread
which carries out the target function is created with
concurrent.thread instead of the regular
threading.Thread. This makes the Timer class available
for use in vdsm, while still ensuring every thread is
created with concurrent.thread.

The Timer also doesn't inherit from the threading.Thread
class, like the threading.Timer does, but instead keeps
the thread object as an attribute.

Change-Id: I28f7f0a7f254088129964bc7d30e5fae846eb3fb
Signed-off-by: Filip Januska <fjanuska@redhat.com>
2022-01-06 14:39:46 +01:00
..
2022-01-06 14:39:46 +01:00
2021-12-02 23:04:37 +02:00