Merge branch 'master' of bitbucket.org:bluetradesys/spark into ice_exec3
This commit is contained in:
commit
bd8c9c354b
171 files changed
+5800
-1431
No files matched your search
@@ -22,6 +22,7 @@
|
||||
#include "lib/api/services/AdminService.client.pb.h"
|
||||
#include "lib/api/service_helpers/AdminServiceUtils.h"
|
||||
#include "lib/config/protos/cme_reference_data.pb.h"
|
||||
#include "lib/utils/ConcurrentAppendCollection.h"
|
||||
#ifndef _WIN32
|
||||
#include "lib/metrics/metrics.h"
|
||||
#endif
|
||||
@@ -35,7 +36,6 @@
|
||||
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <boost/container/flat_map.hpp>
|
||||
#include <tbb/concurrent_vector.h>
|
||||
|
||||
using namespace bts::co2;
|
||||
using std::unique_ptr;
|
||||
@@ -108,7 +108,7 @@ struct MDConsumerGroup {
|
||||
void set_consumer(const MDConsumer& consumer) {
|
||||
// create a new set of handles and swap with the old.
|
||||
// If the new consumer is bad we still have to swap our handles because the consumer that owns our handles will be scheduled for deletion
|
||||
auto temphandles = std::make_shared<tbb::concurrent_vector<DatedHandle>>();
|
||||
auto temphandles = std::make_shared<ConcurrentAppendCollection<DatedHandle>>();
|
||||
handles.swap(temphandles);
|
||||
channel = consumer.get_channel(symbol);
|
||||
}
|
||||
@@ -127,7 +127,7 @@ struct MDConsumerGroup {
|
||||
|
||||
// Can add to handles without invalidating readers (no lock needed)
|
||||
// When we recover we swap a new vector into this unique_ptr and delayed-delete
|
||||
shared_ptr<tbb::concurrent_vector<DatedHandle>> handles;
|
||||
shared_ptr<ConcurrentAppendCollection<DatedHandle>> handles;
|
||||
|
||||
};
|
||||
|
||||
@@ -241,10 +241,10 @@ public:
|
||||
bool snapshot = false;
|
||||
MDConsumerHandle handle = instrument.handle;
|
||||
temp_update.Clear();
|
||||
ChannelUpdate* pupd = &temp_update;
|
||||
pupd->set_key(instrument.handle.key());
|
||||
bts_assert_d(handle.is_initialized());
|
||||
if (!handle.is_initialized()) continue;
|
||||
ChannelUpdate* pupd = &temp_update;
|
||||
pupd->set_key(instrument.handle.key());
|
||||
// If the security was just discovered try to ensure all data is sent
|
||||
if (instrument.discovered > TimeStamp(chan.time()))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user