Here is my code. I see during execution that end of thread has happened but I do not know how to force the code to stop.
- Code: Select all
t1 = threading.Thread(target=thread1, args=(5, t1_stop))
print 'thread 1 set'
def thread1(time, stop_event):
#equivalent to time.sleep()
print 'thread 1'
Thanks in advance for your help.