I don't use thread support in my Android apps, so am not 100% up to date about it...
My problem is that i have a backgammon engine (like a chess engine) that runs and can take some time depending on the searching depth. The algorithm runs full recursive and it is not possible to break it in smaller pieces that run over a timer.
I need at least the following:
1. The GUI must react, so that some search statistics can be shown.
2. The user should have the possibility to stop the engine using a button while the engine is running...
The only easy way that i thought was to run the engine in a separate thread. This is easy and works fine in Win32.
But how to implement this without threads?
Any idea?
Yes, this bug is known. And cthreads won't help if you use precompiled FreePascal 2.5.1(or with some magic - original FreePascal 2.6.x without patches), because all pthread_* functions loading from libpthread.so instead of libc.so(and this is not the only reason). libpthread just doesn't exist on Android. So you need a patched version of FreePascal.
Is there such a patched FreePascal already done?
Regards
Kosats