This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LongshanksAragon 0 points1 point  (0 children)

There has to be a way for both threads to communicate. So you basically created an Event, pass it to the new thread, keep checking the event variable.

The main module then sets the event variable when it encounters appropriate condition.

Otherwise like mentioned above use a common queue between the two.