How to use subscription data in other thread? #1432
Unanswered
JungminHaMartin
asked this question in
Q&A
Replies: 2 comments
-
|
in python threads have shared state -> so a dict containing the variables and values with a threadlock should do the trick! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
or put them in threading.Queue() object., depending what fits you best, They lock for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I subscribe some nodes and I want to use the value in other thread.
How I deal with the subscripted data?
Please show the code as below.
class SubHandler(object):
class Thread_Status(QThread):
def init(self, parent):
super().init(parent)
self.parent = parent
self.node = []
self.node_value = []
Beta Was this translation helpful? Give feedback.
All reactions