Review Request 204: Add TimerManager: [1/6] Add TimerManager.
Jan Safranek
reviewboard at gallagherhome.com
Tue Apr 16 10:53:04 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/204/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
Add TimerManager.
Standard Python threading.Timer starts separate thread for each timer.
That has two unpleseant consequences:
- We end up with lot of sleeping threads.
- If we want to use logging in thread callbacks, we must register the thread
at CIMOM using AttachThread (=tedious).
So let's create TimerManager
- Uses only on thread.
- It is possible to log stuff in timer callbacks.
Diffs
-----
src/python/openlmi/common/TimerManager.py PRE-CREATION
Diff: http://reviewboard-openlmi.rhcloud.com/r/204/diff/
Testing
-------
Thanks,
Jan Safranek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130416/34c96dd7/attachment.html>
More information about the openlmi-devel
mailing list