CCR is in Mantis, so maybe I should go that path? If not for any reason, then it is not a problem for me to send you patches.
Both ways suit me.
@Juha: It is not clear to me if you have these errors trying to install CT version on FPC trunk only on non Windows OS, or you have it also on Windows? It works for me on Windows. Haven't tested elsewhere.
I tested only on Linux. By looking at code in
semaphore.pas I guessed it works on Windows but not elsewhere:
{$IFDEF FPC}
{$IFDEF WINDOWS}
TSemaphoreHandle = THandle;
{$ELSE}
{$DEFINE FPC_TM}
TSemaphoreHandle = Pointer;
{$ENDIF}
{$ENDIF}
Then see how
FPC_TM is used.
I remember WST trunk worked well with FPC 3.0 on Linux at late last year. I believe it works with FPC 3.0.2, too.
I can test more sometime in near future.
This brings a question in my mind. Why WST needs such a FPC_TM define? FPC libs are cross-platform and lots of effort was used to make them so.
WST should be able to use
TThreadManager on every platform, or then the alternative code on every platform, without IFDEFs.
semaphore.pas should not need this:
uses
...
{$IFDEF FPC}
{$IFDEF WINDOWS}
,Windows
{$ENDIF}
{$ENDIF};
Anyway, any bigger changes should be consulted with Inoussa when he is available.