Hi to all
I don't know whether I am missing some documentation or not, about making multithreading apps with b4a. In my Windows C++ experience, to allow access to shared data, we have some objects like CriticalSections, Semaphores etc. Also, the "threading sub" contains an endless loop, exiting from which is obtained by a "thread safe" change of a global variable. I have modified the threading example attached to the library and it seems possible to make, in b4a, a program structure similar to Windows one (i.e. a thread sub with endless loop controlled by a global variable, to stop it). The question is: how to stop/restart a thread to allow to others to safely access shared data? I am investigating this topic by myself, but if anybody has useful informations it will be welcome. Thanks anyway.
I don't know whether I am missing some documentation or not, about making multithreading apps with b4a. In my Windows C++ experience, to allow access to shared data, we have some objects like CriticalSections, Semaphores etc. Also, the "threading sub" contains an endless loop, exiting from which is obtained by a "thread safe" change of a global variable. I have modified the threading example attached to the library and it seems possible to make, in b4a, a program structure similar to Windows one (i.e. a thread sub with endless loop controlled by a global variable, to stop it). The question is: how to stop/restart a thread to allow to others to safely access shared data? I am investigating this topic by myself, but if anybody has useful informations it will be welcome. Thanks anyway.