views:

504

answers:

3

I'm aware of some Windows Thread Libs for Delphi(OmniThread Lib, BMThreads, etc).

But is there a lib that is built to be cross-platform and that can both be used under Delphi and FreePascal?

+2  A: 

Although these are not links to threading libraries per se, the information on the following pages might (or might not) be of use when researching threading on Windows/Linux and MACOSX

  1. Multithreading with Lazarus.
  2. OSX Multithreading forum...thread.

Sorry couldn't offer anything more specific.

Nazar
I've read both of those and they only talk about TThread. That's too simple from were I stand.
Gustavo Carreno
A: 

try this

http://mirror.mirimar.net/freepascal/contrib/fpthreads.zip

http://ftp.icm.edu.pl/packages/fpc/contrib/fpthreads.zip

Bye.

RRUZ
It really doesn't help and it's quite outside my question.
Gustavo Carreno
A: 

Both FPC/Lazarus and Delphi support TThread. FPC doesn't suppport TMREWS though (it does have the identifier but it is a simple lock).

But I assume you mean some thread pooling classes? What do you exactly need, and why is the Delphi built in support not enough?

Marco van de Voort
This is a question to help me on the Dweetta project. I'm already wrapping sock libs(synapse and indy soon) and wanted to do the same for Threads. And because I love OmniThread Lib I thought that someone had already made on for FPC. Look like I'll have to swing it and have different stuff for each, or just use the default TTHread.
Gustavo Carreno
Delphi/FPC have their own thread abstraction, so the need for extra libs is relatively unneeded.
Marco van de Voort