[fpc-devel] syncobjs unit

Colin Western mftq75 at dsl.pipex.com
Mon Nov 27 22:09:17 CET 2006

Michael Van Canneyt wrote:
> On Sun, 26 Nov 2006, C Western wrote:
>> Does the syncobjs unit in the FCL need to be machine dependent any more? The
>> functionality seems to be in the thread manager for all the platforms that
>> have threads, and I had some problems using the unit. (TRTLCriticalSection is
>> defined in sybcobjs and as part of the system thread stuff). The attached
>> patch shows what I had in mind - delete all the syncobjs.pp files in the
>> platform directories.
> Does the patch work for you ? If so, I'll apply it to FCL. It was planned to
> do something similar, since when syncobjs was implemented, the TThreadManager
> did not yet exist. Now that it does exist, syncobjs can be implemented on top
> of it.
I can confirm in works for me fine on Linux - I have not tested it on
any other platform. There seems very little in the syncobjs unit, and 
what there is seems to be duplicated in the Threadmanager, so it seems 
to be easier to maintain with this patch.

More information about the fpc-devel mailing list