Hi, guys --
I found very old topic https://www.b4x.com/android/forum/threads/threading-library.6775/#content . Does B4A include built-in tools to lock processes ? My app executes concurrent downloads and I need to lock a place, which controls access/refresh tokens
PS. I tried the Lock object from threading library and my own method, using variables. No success. Probably, a reason is relative to CallSub2, Wait For or Sleep. The construction is following. Activity calls a subroutine ("RefreshTokens") inside service (using CallSub2). "RefreshTokens" tries to lock itself at the begining and to unlock, when done.
I found very old topic https://www.b4x.com/android/forum/threads/threading-library.6775/#content . Does B4A include built-in tools to lock processes ? My app executes concurrent downloads and I need to lock a place, which controls access/refresh tokens
PS. I tried the Lock object from threading library and my own method, using variables. No success. Probably, a reason is relative to CallSub2, Wait For or Sleep. The construction is following. Activity calls a subroutine ("RefreshTokens") inside service (using CallSub2). "RefreshTokens" tries to lock itself at the begining and to unlock, when done.
Last edited: