Message370761
Just requesting a threading.Event.wait_unset(timeout=None) function. I would request the same for multiprocessing.
My use case:
I've made my own class that adds a little bit of IPC plumbing to the base Process class (ChildProcess). Each ChildProcess has a status that it can update to let other threads/processes know what it's doing at the moment. There is a configurable period when that updated status can be considered "fresh". In some cases, I would like a listening process to be able to ignore the "freshness" and only trigger some action only if the status updates while the listening process is waiting for it to update.
To do this, I need to be able to know when the status goes unfresh so that waiting for the status to update can begin in earnest. Right now I am polling manually, and that can't be the right answer.
Happy to clarify the above paragraphs. That's as best as I could think to describe it in text. |
|
Date |
User |
Action |
Args |
2020-06-05 13:42:51 | Jacob Kunnappally | set | recipients:
+ Jacob Kunnappally |
2020-06-05 13:42:51 | Jacob Kunnappally | set | messageid: <1591364571.85.0.30119550937.issue40871@roundup.psfhosted.org> |
2020-06-05 13:42:51 | Jacob Kunnappally | link | issue40871 messages |
2020-06-05 13:42:51 | Jacob Kunnappally | create | |
|