I have a class, for example like the following
Class Example(object):
trigger_event = threading.Event()
def set_trigger(self):
# do some stuff
self.trigger_event.set()
What I am finding is if I have a group of these objects and process them in a single thread, then once the first object has its event set, then all other objects have it set as well. Is there no way to have a unique Event member for each individual object?
If I have 10 objects, and print out the is_set() for the Event before I call set_trigger() then it will show as FALSE, TRUE, TRUE, TRUE etc...
Thanks in advance for any help or insight!