Message queue, c++ multi thread

I looking for cross platform multithread message queue implementation on c++ (not slot/signal) . Better if it based on subject-observer pattern.


ZeroMQ looks like it may be what you are looking for.

It is well documented with lots of examples, such as this one: , which may be what you are trying to implement.

Take a look to the "ISL" open source project (stands for an "Internet Server Library", C++), which SVN-repository is located on - isl::AbstractMessageBroker class is a good candidate for a basement of your job. This is quite simple but extensible skeleton for any message broker subsystem (DBus, JMS, AMQP, etc.). Each client is served by 2 threads from the pre-started thread's pool: one is for receiving message from the transport and processing message and another is for sending message to transport. So, actually in order to implement your messaging system you have to override at least following three virtual methods:


Example of use is in trunk/examples/EchoMessageBroker directory. Responses client with echoed message, terminates connection on "bye\r\n" message, terminates itself on SIGINT.

You can try out Apache ActiveMQ. Quite robust.We use it for a FIX messaging platform, quite responsive and easy to configure also.

Have a look at Intel's Open Source lib Threading Building Blocks. They are cross-platform and last time I looked they had lock-free containers.

Need Your Help

XmlDataSource in GridView xml datasource

I have an xml file with the structure mentioned below:

How to customize magento onepage checkout form

magento checkout

i am using Magento and i want to customize the address block in the onepage checkout form. I want to remove the "fax" input field and put the "region" dropdown below the country "dropdown"....