This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jacob Kunnappally
Recipients Jacob Kunnappally
Date 2020-06-05.13:42:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591364571.85.0.30119550937.issue40871@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-06-05 13:42:51Jacob Kunnappallysetrecipients: + Jacob Kunnappally
2020-06-05 13:42:51Jacob Kunnappallysetmessageid: <1591364571.85.0.30119550937.issue40871@roundup.psfhosted.org>
2020-06-05 13:42:51Jacob Kunnappallylinkissue40871 messages
2020-06-05 13:42:51Jacob Kunnappallycreate