L lsis Member Licensed User Longtime User Apr 29, 2014 #1 Can i use my class properties as realtime communication of gui with a threading sub of my class? I mean global variables of my class where can i change by properties. Last edited: Apr 29, 2014
Can i use my class properties as realtime communication of gui with a threading sub of my class? I mean global variables of my class where can i change by properties.
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #2 You do not need to use the threading library. In most cases it will only complicate your code. Upvote 0
L lsis Member Licensed User Longtime User Apr 30, 2014 #3 Hi Erel. I need threading because i use it for backround serial communication loop. Can i use the global variables of my class in threading loop to have I/O at runtime of thread? Upvote 0
Hi Erel. I need threading because i use it for backround serial communication loop. Can i use the global variables of my class in threading loop to have I/O at runtime of thread?
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #4 Why don't you use AsyncStreams? It will handle the communication in the background. Can i use the global variables of my class in threading loop to have I/O at runtime of thread? Click to expand... In most cases yes. Upvote 0
Why don't you use AsyncStreams? It will handle the communication in the background. Can i use the global variables of my class in threading loop to have I/O at runtime of thread? Click to expand... In most cases yes.
L lsis Member Licensed User Longtime User Apr 30, 2014 #5 For the hardware side i use AsynchStreams but for the software protocol of communication i have to use a backround loop. Can you be more specific, what did you mean in most cases? Upvote 0
For the hardware side i use AsynchStreams but for the software protocol of communication i have to use a backround loop. Can you be more specific, what did you mean in most cases?
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #6 I recommend you to implement everything with AsyncStreams. It should be possible. You can access primitive values. You cannot access collections for example. Upvote 0
I recommend you to implement everything with AsyncStreams. It should be possible. You can access primitive values. You cannot access collections for example.
L lsis Member Licensed User Longtime User Apr 30, 2014 #7 I think if we want maximum power must use thread, not only for the communication part, but for most of multitasking application Sorry but with collections you mean costum types with many variables and maybe arrays? Upvote 0
I think if we want maximum power must use thread, not only for the communication part, but for most of multitasking application Sorry but with collections you mean costum types with many variables and maybe arrays?
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #8 AsyncStreams for example uses two background threads to manage the communication. Other libraries also use background threads for all kinds of tasks. Sorry but with collections you mean costum types with many variables and maybe arrays? Click to expand... I was referring to Lists and Maps. Upvote 0
AsyncStreams for example uses two background threads to manage the communication. Other libraries also use background threads for all kinds of tasks. Sorry but with collections you mean costum types with many variables and maybe arrays? Click to expand... I was referring to Lists and Maps.