Hi, guys --
In my app activities and services change process global variables.
Under Windows all is simple - mutexes, semaphores, critical sections etc. But what about B4A ?
Somehow Erel wrote that it's not neccessary to lock something, because B4A use one thread only.
Meanwhile I worry about common executing of activities, from one side, and services, from another side.
I made a simple experiment - main activity and Starter service have the same process and threed id (I checked android.os.Process.myTid and android.os.Process.myPid)
Is it correct that it's not nessesary to worry about locks at all ?
In my app activities and services change process global variables.
Under Windows all is simple - mutexes, semaphores, critical sections etc. But what about B4A ?
Somehow Erel wrote that it's not neccessary to lock something, because B4A use one thread only.
Meanwhile I worry about common executing of activities, from one side, and services, from another side.
I made a simple experiment - main activity and Starter service have the same process and threed id (I checked android.os.Process.myTid and android.os.Process.myPid)
Is it correct that it's not nessesary to worry about locks at all ?