I have been looking at threads in FPC/Lazarus over the last few weeks and I
found on the web a conversion of the old Delphi threads demo that was
partially working. I have added the "{$ifndef win32} CThreads, {$endif}"
code to enable thread linking on Linux. I have also got the Synchronize calls
to work by adding the '@' operator to the DoVisualSwap procedure reference. I
also had to remove the final refresh of the paint boxes as this caused a seg
fault on Windows. The new version of the code is now here:
http://www.proceduralminds.com/Files/LazThreads.tar.gz
The threads now work fine on Windows and on Linux in the Lazarus IDE,
unfortunately the Linux standalone program executes the threads sequentially,
i.e. not using time slicing? I am testing in Laz 0.9.13Beta 9-2-06. Anyone
any ideas?
I would value any insight into what is going on as I need to use threads in
my MSc dissertation project to be completed this September and I would
very much like to use Lazarus as the development platform.
Thanks,
Paul
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives