任何用于Delphi和FreePascal的多线程跨平台的lib?

时间:2021-04-18 12:26:17

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

我知道一些用于Delphi的Windows线程库(OmniThread Lib,BMThreads等)。

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

但是有一个lib是跨平台构建的,可以在Delphi和FreePascal下使用吗?

2 个解决方案

#1


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

虽然这些链接本身并不是线程库的链​​接,但在研究Windows / Linux和MACOSX上的线程时,可能(或可能不)使用以下页面上的信息

  1. Multithreading with Lazarus.
  2. 与拉撒路的多线程。

  3. OSX Multithreading forum...thread.
  4. OSX多线程论坛...线程。

Sorry couldn't offer anything more specific.

抱歉无法提供更具体的内容。

#2


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

FPC / Lazarus和Delphi都支持TThread。虽然FPC不支持TMREWS(它确实有标识符,但它是一个简单的锁)。

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

但我认为你的意思是一些线程池类?你到底需要什么,为什么Delphi内置的支持还不够?

#1


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

虽然这些链接本身并不是线程库的链​​接,但在研究Windows / Linux和MACOSX上的线程时,可能(或可能不)使用以下页面上的信息

  1. Multithreading with Lazarus.
  2. 与拉撒路的多线程。

  3. OSX Multithreading forum...thread.
  4. OSX多线程论坛...线程。

Sorry couldn't offer anything more specific.

抱歉无法提供更具体的内容。

#2


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

FPC / Lazarus和Delphi都支持TThread。虽然FPC不支持TMREWS(它确实有标识符,但它是一个简单的锁)。

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

但我认为你的意思是一些线程池类?你到底需要什么,为什么Delphi内置的支持还不够?