Qt Concurrent integrated!

Published Friday November 23rd, 2007
6 Comments on Qt Concurrent integrated!
Posted in Qt, Qt Concurrent, Threads

Just a quick update to say that Qt Concurrent has been integrated into Qt/main and is now available in the snapshots. The documentation is available here, end there’s a couple of examples in the examples/qtconcurrent/ directory in the snapshot package. Enjoy!

Do you like this? Share it
Share on LinkedInGoogle+Share on FacebookTweet about this on Twitter

Posted in Qt, Qt Concurrent, Threads


Karol Krizka says:

Can’t wait for this to become more used in applications, because multicore CPU’s are very common now. It could really speed up the KDE desktop and other QT based apps.

required says:

uh, map/reduce – weren’t the lisp folks all that wrong, hmm…

ZeD says:

Hi. Just a question: how do the concurrency model compares with erlang and others Concurrency Oriented Programming languagues?

Giovanni Bajo says:

Any plans on using multiple processes instead of multiple threads? That would help for PyQt, given that python and threads don’t play together well.

Peter says:

Seems you’ve dropped boost::bind and written you own.

Have you considered to introduce a more generic QBind which also could be used
at other places. I assume you could do this now within a day. πŸ˜‰

Morten says:

Hi, thanks for the interest πŸ™‚

ZeD: I think Erlang has a really interesting concurrency model, where you divide your programs into lots of independent processes that communicate through message passing. This is hard to do in C++ for two reasons, first of all processes are too expensive on UNIX/Windows systems (the Erlang virtual machine makes them cheap). Second, going form a C++ “shared memory” model of programming to “shared nothing” and message passing would require a lot of code restructuring. Since Qt Concurrent is based on threads you’ll have access to all of your programs memory from all of the code.

Bajo: Using processes could be an interesting feature, but probably requires a completely different implementation πŸ™‚

Peter: Yeah, there is some feature overlap here. QtConcurrent::run() supports argument binding like boost::bind, but not the placeholder syntax for example. As I understand it, bind() is going to be a part of C++0x/TR1, so we probably won’t add it to Qt. (And you can still use boost::bind with QtConccurent if you want it today.)

Commenting closed.

Get started today with Qt Download now