Delphi 7 的线程框架 - 有吗?

发布于 2024-09-16 01:56:53 字数 1536 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

若无相欠,怎会相见 2024-09-23 01:56:53

所以你想继续使用 Delphi 7,并且你想要一个好的线程库,但又不想从头开始编写它。

我确信有一天你会升级。那么为什么要选择一个糟糕的线程库,当你这样做时你需要更改它。

我的建议是采用 OmniThreadLibrary,并尝试将其移植到 Delphi 7 中。然后您将获得升级路径。

否则,请尝试以下建议之一:我如何在 Delphi 中进行线程处理的各种方法之间进行选择?

So you want to stay with Delphi 7, and you want a good thread library, but don't want to write it from scratch.

One day you will upgrade, I'm sure. So why go for a poor threading library that you'll need to change when you do.

My recommendation would be to take OmniThreadLibrary, and try to port it to work with Delphi 7. Then you'll have an upgrade path.

Otherwise, try one of the recommendations in: How Do I Choose Between the Various Ways to do Threading in Delphi?

狼性发作 2024-09-23 01:56:53

从长远来看,线程框架可能会为您节省数月的工作时间,因此,根据拥有一个线程框架对您的重要性,也许您可​​以将此作为升级的理由。任何认为 TThread 和其他 Windows 同步原语就是您所需要的人显然没有编写太多线程代码。我估计我至少花了 3-6 个月的时间来开发自己的线程框架以使事情变得更容易,并且它很容易“收回成本”。

A threading framework could possibly save you months of work in the long run, so depending on how important it is for you to have one, maybe you can use this as a reason to upgrade. And anyone who suggests that TThread and other Windows synchronisation primitives are all you need obviously has not written much threaded code. I estimate that I have spent at least 3-6 months just to develop my own threading framework to make things easier, and it has easily "paid" for itself.

囍笑 2024-09-23 01:56:53

我这么说并不是在恶搞,但是 TThread 怎么样?虽然不是一个框架,但它确实使使用 Windows 线程变得不那么痛苦。说真的,它做得非常好。

以下是一些可帮助您入门的链接:

I'm not trolling when I say this, but how about TThread? Although not a framework, it certainly makes working with Windows threading far less painful. Seriously, it is very well done.

Here are some links to get you started:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文