Add orthogonal OK/ERROR states.

Replace state check mutex with atomic.

Update DDS example documentation.
This commit is contained in:
Alexey Rybalchenko
2015-08-24 17:35:30 +02:00
committed by Mohammad Al-Turany
parent a7ab33a10e
commit fbf7dbf2ba
38 changed files with 838 additions and 615 deletions

View File

@@ -12,7 +12,7 @@
* @author A. Rybalchenko
*/
#include <memory>
#include <memory> // unique_ptr
#include <boost/thread.hpp>
#include <boost/bind.hpp>
@@ -32,9 +32,9 @@ void FairMQExample4Sampler::Run()
{
boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
std::unique_ptr<uint64_t> number(new uint64_t(counter));
uint64_t* number = new uint64_t(counter);
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage(number.release(), sizeof(uint64_t)));
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage(number, sizeof(uint64_t)));
LOG(INFO) << "Sending \"" << counter << "\"";